[FFmpeg-cvslog] avcodec/vorbisdec: Reset first_frame

Michael Niedermayer git at videolan.org
Sat Jun 7 02:20:05 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  7 01:27:40 2014 +0200| [5a376976a0f58b38076fe310a455ce03489d2f8a] | committer: Michael Niedermayer

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 at chromium.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a376976a0f58b38076fe310a455ce03489d2f8a
---

 libavcodec/vorbisdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index 43eb3d9..87d1bbb 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 = {



More information about the ffmpeg-cvslog mailing list