diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 01:27:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-07 02:09:27 +0200 |
commit | 5a376976a0f58b38076fe310a455ce03489d2f8a (patch) | |
tree | a5019c7fa25cfd284bcc0daa3a2278a08160d957 | |
parent | 71da91e887d5412f22ed2a9a2cb9e875b5029f78 (diff) | |
download | ffmpeg-5a376976a0f58b38076fe310a455ce03489d2f8a.tar.gz |
avcodec/vorbisdec: Reset first_frame
This avoids returning a initial frame after seeking which does
not match what would be received when decoding from the begin.
Suggested-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vorbisdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 43eb3d9e60..87d1bbb97a 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -1828,6 +1828,7 @@ static av_cold void vorbis_decode_flush(AVCodecContext *avctx) sizeof(*vc->saved)); } vc->previous_window = -1; + vc->first_frame = 0; } AVCodec ff_vorbis_decoder = { |