Clear synth_buf on flush(). Part of a patch by Brian Brice bbrice gmail com.
authorBrian Brice <bbrice@gmail.com>
Fri, 11 Jan 2008 18:20:42 +0000 (18:20 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Jan 2008 18:20:42 +0000 (18:20 +0000)
Originally committed as revision 11507 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegaudiodec.c

index f7e8405..5183f29 100644 (file)
@@ -2417,6 +2417,7 @@ retry:
 
 static void flush(AVCodecContext *avctx){
     MPADecodeContext *s = avctx->priv_data;
+    memset(s->synth_buf, 0, sizeof(s->synth_buf));
     s->last_buf_size= 0;
 }