[FFmpeg-cvslog] r9946 - trunk/libavcodec/adpcm.c
Baptiste Coudurier
baptiste.coudurier
Mon Aug 6 10:39:09 CEST 2007
Hi
Benoit Fouet wrote:
> bcoudurier wrote:
>> Author: bcoudurier
>> Date: Sun Aug 5 15:41:44 2007
>> New Revision: 9946
>>
>> Log:
>> fix decoding of adpcm swf big frames, fix RamboMJPEGAVP6_1Mbps.swf
>>
>> Modified:
>> trunk/libavcodec/adpcm.c
>>
>> Modified: trunk/libavcodec/adpcm.c
>> ==============================================================================
>> --- trunk/libavcodec/adpcm.c (original)
>> +++ trunk/libavcodec/adpcm.c Sun Aug 5 15:41:44 2007
>> @@ -1286,12 +1286,13 @@ static int adpcm_decode_frame(AVCodecCon
>> k0 = 1 << (nb_bits-2);
>> signmask = 1 << (nb_bits-1);
>>
>> + while (get_bits_count(&gb) <= size - 22*avctx->channels) {
>> for (i = 0; i < avctx->channels; i++) {
>> *samples++ = c->status[i].predictor = get_sbits(&gb, 16);
>> c->status[i].step_index = get_bits(&gb, 6);
>> }
>>
>> - while (get_bits_count(&gb) < size)
>> + for (count = 0; get_bits_count(&gb) <= size - nb_bits*avctx->channels && count < 4095; count++)
>> {
>> int i;
>>
>> @@ -1327,6 +1328,7 @@ static int adpcm_decode_frame(AVCodecCon
>> }
>> }
>> }
>> + }
>> src += buf_size;
>> break;
>> }
>>
>
> no indentation afterward ?
>
Thanks, reindented.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-cvslog
mailing list