Commit 8e39cf62 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: pass AVSEEK_FLAG_ANY to av_seek_frame()

This corrects a major mistake from commit 724a59aa - there was one small thing that commit was supposed to do, and it failed. AV_TIME_BASE is not a seek flag.
parent a9e351e0
ver 0.18.10 (not yet released)
* decoder
- ffmpeg: fix seeking bug
- gme: fix memory leak
ver 0.18.9 (2014/03/02)
......
......@@ -496,7 +496,7 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
av_stream->start_time;
if (av_seek_frame(format_context, audio_stream, where,
AV_TIME_BASE) < 0)
AVSEEK_FLAG_ANY) < 0)
decoder_seek_error(decoder);
else {
avcodec_flush_buffers(codec_context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment