[FFmpeg-devel] [PATCH] make get_ur_golomb capable of reading 16 bit values

Lars Täuber lars.taeuber
Thu Sep 10 14:46:49 CEST 2009


On Thu, 10 Sep 2009 13:56:41 +0200 Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Sep 10, 2009 at 01:47:31PM +0200, Lars T?uber wrote:
> > $subject
> > 
> > regards
> > Lars
> 
> >  golomb.h |    9 +++++++--
> >  1 file changed, 7 insertions(+), 2 deletions(-)
> > b7bfb0673f883d5e3d2b92c843d3964ff7439137  golomb-wide.diff
> > Index: libavcodec/golomb.h
> > ===================================================================
> > --- libavcodec/golomb.h	(Revision 19791)
> > +++ libavcodec/golomb.h	(Arbeitskopie)
> > @@ -253,8 +253,13 @@
> >  
> >          return buf;
> >      }else{
> > -        buf >>= 32 - limit - esc_len;
> > -        LAST_SKIP_BITS(re, gb, esc_len + limit);
> > +        LAST_SKIP_BITS(re, gb, limit);
> > +        UPDATE_CACHE  (re, gb);
> > +
> 
> > +        buf = GET_CACHE(re, gb);
> > +        buf >>= 32 - esc_len;
> 
> SHOW_UBITS()

fixed


additionally added a typo fix for get_bits.h

regards
Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: golomb-wide.diff
Type: text/x-diff
Size: 547 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090910/c220fd2a/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_bits.diff
Type: text/x-diff
Size: 514 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090910/c220fd2a/attachment-0001.diff>



More information about the ffmpeg-devel mailing list