comparison mpegaudiodec.c @ 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
comparison
equal deleted inserted replaced
6136:85f3acb225e9 6137:5ef885b008c0
2415 return buf_size; 2415 return buf_size;
2416 } 2416 }
2417 2417
2418 static void flush(AVCodecContext *avctx){ 2418 static void flush(AVCodecContext *avctx){
2419 MPADecodeContext *s = avctx->priv_data; 2419 MPADecodeContext *s = avctx->priv_data;
2420 memset(s->synth_buf, 0, sizeof(s->synth_buf));
2420 s->last_buf_size= 0; 2421 s->last_buf_size= 0;
2421 } 2422 }
2422 2423
2423 #ifdef CONFIG_MP3ADU_DECODER 2424 #ifdef CONFIG_MP3ADU_DECODER
2424 static int decode_frame_adu(AVCodecContext * avctx, 2425 static int decode_frame_adu(AVCodecContext * avctx,