[FFmpeg-devel] [PATCH] Mimic decoder

Ramiro Polla ramiro
Sun Mar 16 20:26:55 CET 2008

Hello Michael,

Michael Niedermayer wrote:
> On Sat, Mar 15, 2008 at 11:48:00PM -0300, Ramiro Polla wrote:
> [...]
>>     int8_t vlcdec_lookup[8][128];
> int8_t vlcdec_lookup[9][64]
> is large enough

The maximum num_bits is 7, so the largest value is 127.

vlcdec_lookup[7] has 128 symbols. That way, it'd have to read 
vlcdec_lookup[8][64] as vlcdec_lookup[7][128], which I don't think is a 
good idea.

Or I really didn't understand how this can be optimized.

Ramiro Polla

More information about the ffmpeg-devel mailing list