[Ffmpeg-devel] [PATCH] get_vlc -> get_vlc2

Michael Niedermayer michaelni
Sun Jan 8 14:26:02 CET 2006


Hi

On Sun, Jan 08, 2006 at 01:50:32PM +0000, Benjamin Larsson wrote:
> This patch replaces the depricated get_vlc with get_vlc2. h263.c and
> mpegaudiodec.c are the last files that contain get_vlc. I'll send a
> patch for those files also if this patch is ok.
[...]
> -        code = get_vlc(&s->gb, &s->exp_vlc);
> +        code = get_vlc2(&s->gb, s->exp_vlc.table, s->exp_vlc.bits, 2);

replace s->exp_vlc.bits by a constant if possible so gcc can do a few more
optimizations

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list