[FFmpeg-cvslog] r18685 - trunk/libavcodec/cook.c

Michael Niedermayer michaelni
Sat Apr 25 19:25:08 CEST 2009


On Sat, Apr 25, 2009 at 12:46:07PM +0200, banan wrote:
> Author: banan
> Date: Sat Apr 25 12:46:07 2009
> New Revision: 18685
> 
> Log:
> Support cook multichannel files.
> 
> Modified:
>    trunk/libavcodec/cook.c
> 
> Modified: trunk/libavcodec/cook.c
> ==============================================================================
> --- trunk/libavcodec/cook.c	Sat Apr 25 12:25:14 2009	(r18684)
> +++ trunk/libavcodec/cook.c	Sat Apr 25 12:46:07 2009	(r18685)
> @@ -1008,6 +1008,13 @@ static int cook_decode_frame(AVCodecCont
>      /* estimate subpacket sizes */
>      q->subpacket[0].size = avctx->block_align;
>  
> +    if(q->num_subpackets > 1){
> +        for(i=1;i<q->num_subpackets;i++){
> +            q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i];
> +            q->subpacket[0].size -= (q->subpacket[i].size + 1);
> +        }
> +    }
> +

the if is useless and 
q->subpacket[0].size can become negative, i dont know what effect that might
have but i doubt that is good

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20090425/d38434ea/attachment.pgp>



More information about the ffmpeg-cvslog mailing list