[FFmpeg-soc] [soc]: r4353 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Sun May 31 10:00:02 CEST 2009
Author: faust3
Date: Sun May 31 10:00:02 2009
New Revision: 4353
Log:
do not reset the whole output buffer during seeking
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Sun May 31 01:18:02 2009 (r4352)
+++ wmapro/wma3dec.c Sun May 31 10:00:02 2009 (r4353)
@@ -1619,8 +1619,10 @@ static void wma_flush(AVCodecContext *av
{
WMA3DecodeContext *s = avctx->priv_data;
int i;
+ /** reset output buffer as a part of it is used during the windowing of a
+ new frame */
for(i=0;i<s->num_channels;i++)
- memset(s->channel[i].out, 0, sizeof(s->channel[0].out));
+ memset(s->channel[i].out, 0, s->samples_per_frame * sizeof(float));
s->packet_loss = 1;
}
More information about the FFmpeg-soc
mailing list