[Ffmpeg-devel] [PATCH] Little endian bitreader and vlc reader

Måns Rullgård mru
Tue May 10 21:27:36 CEST 2005


Balatoni Denes <dbalatoni at programozo.hu> writes:

> Hi!
>
> Sorry to interrupt the discussion about dynamic linking, how we like to 
> conduct sending and getting  email, ANSI C and 1 pass encoding that 
> adaptively selects the number of encoding passes to use (smart feature 
> though).
> This patch adds little endian (LSB first) bitreader and vlc reader to 
> libavcodec. Vorbis will need these, and also at least one other codec in lavc 
> (id cin iirc). There is some code duplication (most of the patch is the 
> duplicate of existing code), but there are no code templates in the C 
> language AFAIK, and introducing #defines, or introducing a third level of 
> #defines, to emulate templates seemed very ugly.

#defines are not ugly at all.  Properly used, they can be quite elegant.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list