From 5a376976a0f58b38076fe310a455ce03489d2f8a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 7 Jun 2014 01:27:40 +0200 Subject: 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 Signed-off-by: Michael Niedermayer --- libavcodec/vorbisdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/vorbisdec.c') 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 = { -- cgit v1.2.3