diff options
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 22e1b3bc1..d9729ee1a 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -372,13 +372,15 @@ FFmpegDecoder::seek_and_flush (ContentTime t) ); } + cout << "S&F " << t << "\n"; + /* Ridiculous empirical hack */ s--; if (s < 0) { s = 0; } - av_seek_frame (_format_context, _video_stream, s, AVSEEK_FLAG_BACKWARD); + av_seek_frame (_format_context, _video_stream, s, 0); avcodec_flush_buffers (video_codec_context()); if (audio_codec_context ()) { |
