Fix clicking sound in xa-adpcm.
authorAlexander Strange <astrange@ithinksw.com>
Thu, 27 Dec 2007 11:55:53 +0000 (11:55 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 27 Dec 2007 11:55:53 +0000 (11:55 +0000)
patch by Alexander Strange, astrange ithinksw com
Subject: Re: [FFmpeg-devel] [PATCH] fix clicking sound in xa-adpcm
Date: Thu, 27 Dec 2007 03:20:24 -0500

Originally committed as revision 11329 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/adpcm.c

index b68b064..e5bae27 100644 (file)
@@ -1121,8 +1121,6 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
         }
         break;
     case CODEC_ID_ADPCM_XA:
-        c->status[0].sample1 = c->status[0].sample2 =
-        c->status[1].sample1 = c->status[1].sample2 = 0;
         while (buf_size >= 128) {
             xa_decode(samples, src, &c->status[0], &c->status[1],
                 avctx->channels);