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.
This commit is contained in:
Max Kellermann 2014-03-18 09:10:36 +01:00
parent a9e351e00d
commit 8e39cf62e7
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
ver 0.18.10 (not yet released)
* decoder
- ffmpeg: fix seeking bug
- gme: fix memory leak
ver 0.18.9 (2014/03/02)

View File

@ -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);