summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorBrian Brice <bbrice@gmail.com>2008-01-11 18:20:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-01-11 18:20:42 +0000
commit812f29ffb8a88b3803b0979be2753f0db24bbed8 (patch)
tree577ef7dfce4337cf8cbd7bc42290901d3b92700f /libavcodec/mpegaudiodec.c
parent4a69055bad5d05c11881349cc889508a723a0b15 (diff)
Clear synth_buf on flush(). Part of a patch by Brian Brice bbrice gmail com.
Originally committed as revision 11507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index f7e840524a..5183f296fc 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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;
}