[FFmpeg-devel] [PATCH] optimized H.261 probe function
Reimar Döffinger
Reimar.Doeffinger
Sun Feb 14 20:01:26 CET 2010
On Sun, Feb 14, 2010 at 07:37:13PM +0100, Michael Niedermayer wrote:
> > Index: libavformat/raw.c
> > ===================================================================
> > --- libavformat/raw.c (revision 21819)
> > +++ libavformat/raw.c (working copy)
> > @@ -497,6 +497,10 @@
> > init_get_bits(&gb, p->buf, p->buf_size*8);
> >
> > for(i=0; i<p->buf_size*8; i++){
> > + if ((code & 0x01ff0000) || !(code & 0xff00)) {
> > + code = (code<<8) + get_bits(&gb, 8);
> > + i += 7;
> > + } else
> > code = (code<<1) + get_bits1(&gb);
> > if ((code & 0xffff0000) == 0x10000) {
> > int gn= (code>>12)&0xf;
>
> ok
Applied. Now it's again below the dynamic loader in CPU usage :-)
More information about the ffmpeg-devel
mailing list