diff options
author | Max Kellermann <max@duempel.org> | 2011-09-15 21:32:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-15 21:32:29 +0200 |
commit | 724a59aaf7c396845bb5de7ad815c7ca842c2778 (patch) | |
tree | d96299ff9e101d3f6b1307abc5df9e70e4888cd5 /src/decoder | |
parent | 42d8c2981f4e76fab5c4c3ed6ff840df7a41a1a4 (diff) | |
download | mpd-724a59aaf7c396845bb5de7ad815c7ca842c2778.tar.gz mpd-724a59aaf7c396845bb5de7ad815c7ca842c2778.tar.xz mpd-724a59aaf7c396845bb5de7ad815c7ca842c2778.zip |
decoder/ffmpeg: don't require key frame for seeking
Use flag AV_TIME_BASE.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_decoder_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 1a1598f36..f8c9db700 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -447,7 +447,8 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input) int64_t where = decoder_seek_where(decoder) * AV_TIME_BASE; - if (av_seek_frame(format_context, -1, where, 0) < 0) + if (av_seek_frame(format_context, -1, where, + AV_TIME_BASE) < 0) decoder_seek_error(decoder); else decoder_command_finished(decoder); |