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:
parent
a9e351e00d
commit
8e39cf62e7
1
NEWS
1
NEWS
|
@ -1,5 +1,6 @@
|
||||||
ver 0.18.10 (not yet released)
|
ver 0.18.10 (not yet released)
|
||||||
* decoder
|
* decoder
|
||||||
|
- ffmpeg: fix seeking bug
|
||||||
- gme: fix memory leak
|
- gme: fix memory leak
|
||||||
|
|
||||||
ver 0.18.9 (2014/03/02)
|
ver 0.18.9 (2014/03/02)
|
||||||
|
|
|
@ -496,7 +496,7 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
|
||||||
av_stream->start_time;
|
av_stream->start_time;
|
||||||
|
|
||||||
if (av_seek_frame(format_context, audio_stream, where,
|
if (av_seek_frame(format_context, audio_stream, where,
|
||||||
AV_TIME_BASE) < 0)
|
AVSEEK_FLAG_ANY) < 0)
|
||||||
decoder_seek_error(decoder);
|
decoder_seek_error(decoder);
|
||||||
else {
|
else {
|
||||||
avcodec_flush_buffers(codec_context);
|
avcodec_flush_buffers(codec_context);
|
||||||
|
|
Loading…
Reference in New Issue