summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-25 12:10:27 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-25 12:10:27 +0000
commite15fa4fe6d519c92f2083ca42c18675c729bda30 (patch)
tree70813871a8219b00d5bd0fb8409ee1aa8aad2929 /src/lib/ffmpeg_decoder.cc
parent751d212a973c3ce80a6664fec929801301db6349 (diff)
Somewhat riskily remove use of AV_SEEK_BACKWARD. It was causing
seeks at the end of a FFmpegDecoder to go back into the content, confusing the player (which assumes that the next peek after seek will be after the seek location).
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc4
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 ()) {