changeset 6137:5ef885b008c0 libavcodec

Clear synth_buf on flush(). Part of a patch by Brian Brice bbrice gmail com.
author michael
date Fri, 11 Jan 2008 18:20:42 +0000
parents 85f3acb225e9
children c7a61f83de73
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Fri Jan 11 18:18:45 2008 +0000
+++ b/mpegaudiodec.c	Fri Jan 11 18:20:42 2008 +0000
@@ -2417,6 +2417,7 @@
 
 static void flush(AVCodecContext *avctx){
     MPADecodeContext *s = avctx->priv_data;
+    memset(s->synth_buf, 0, sizeof(s->synth_buf));
     s->last_buf_size= 0;
 }