aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FfmpegDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-18 09:10:36 +0100
committerMax Kellermann <max@duempel.org>2014-03-18 09:10:36 +0100
commit8e39cf62e7f84eca6f8b431bf721281d50653892 (patch)
tree08d00033c20b0dcc28656ad637f195439e5bd9e7 /src/decoder/FfmpegDecoderPlugin.cxx
parenta9e351e00d023829a5bb7def60208eef826b2ef3 (diff)
downloadmpd-8e39cf62e7f84eca6f8b431bf721281d50653892.tar.gz
mpd-8e39cf62e7f84eca6f8b431bf721281d50653892.tar.xz
mpd-8e39cf62e7f84eca6f8b431bf721281d50653892.zip
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.
Diffstat (limited to 'src/decoder/FfmpegDecoderPlugin.cxx')
-rw-r--r--src/decoder/FfmpegDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/FfmpegDecoderPlugin.cxx b/src/decoder/FfmpegDecoderPlugin.cxx
index 593f42d39..e1e848bf3 100644
--- a/src/decoder/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/FfmpegDecoderPlugin.cxx
@@ -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);