[FFmpeg-devel] [PATCH] Mimic decoder
Mon Mar 17 19:07:49 CET 2008
Michael Niedermayer wrote:
> On Sun, Mar 16, 2008 at 04:26:55PM -0300, Ramiro Polla wrote:
>> Hello Michael,
>> Michael Niedermayer wrote:
>>> On Sat, Mar 15, 2008 at 11:48:00PM -0300, Ramiro Polla wrote:
>>>> int8_t vlcdec_lookup;
>>> int8_t vlcdec_lookup
>>> is large enough
>> The maximum num_bits is 7, so the largest value is 127.
>> vlcdec_lookup has 128 symbols. That way, it'd have to read
>> vlcdec_lookup as vlcdec_lookup, which I don't think is a
>> good idea.
> There is no  or 
> There is a  though
> My suggestion safes almost 50% memory and it also should be faster due to
> better use of the cache.
According to the nice folks at ##c at freenode.net, the memory for the
array must be contiguous and unpadded, something I wasn't aware of. Just
out of curiosity, can some C99 expert point me out where that's written
on the spec?
More information about the ffmpeg-devel