[Ffmpeg-devel] [PATCH] get_vlc -> get_vlc2
Michael Niedermayer
michaelni
Sun Jan 8 15:28:35 CET 2006
Hi
On Sun, Jan 08, 2006 at 03:19:27PM +0000, Benjamin Larsson wrote:
> Michael Niedermayer wrote:
>
> >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
> >
> >[...]
> >
> >
> >
> Ok to commit this ?
yes, though a #define VLC_BITS 9 ... would be more readable ...
[...]
--
Michael
More information about the ffmpeg-devel
mailing list