[FFmpeg-soc] [soc]: r2530 - aac/aac.c

Michael Niedermayer michaelni at gmx.at
Sun Jun 22 13:34:10 CEST 2008


On Sun, Jun 22, 2008 at 12:30:32PM +0200, superdump wrote:
> Author: superdump
> Date: Sun Jun 22 12:30:31 2008
> New Revision: 2530
> 
> Log:
> Migrate to new static VLC table initialisation
> 
> 
> Modified:
>    aac/aac.c
> 
> Modified: aac/aac.c
> ==============================================================================
> --- aac/aac.c	(original)
> +++ aac/aac.c	Sun Jun 22 12:30:31 2008
> @@ -801,6 +801,62 @@ static int aac_decode_init(AVCodecContex
>      avccontext->sample_rate = ac->m4ac.sample_rate;
>      avccontext->frame_size  = 1024;
>  
> +    if(!books[0].table)
> +        INIT_VLC_STATIC(&books[0], 6, tmp[0].s/sizeof(tmp[0].a_code[0]),
> +            tmp[0].a_bits, sizeof(tmp[0].a_bits[0]), sizeof(tmp[0].a_bits[0]),
> +            tmp[0].a_code, sizeof(tmp[0].a_code[0]), sizeof(tmp[0].a_code[0]),
> +            144);

what are the if() good for?

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

Thouse who are best at talking, realize last or never when they are wrong.
-------------- 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-soc/attachments/20080622/3858a708/attachment.pgp>


More information about the FFmpeg-soc mailing list