[FFmpeg-devel] [PATCH] make get_ur_golomb capable of reading 16 bit values
Michael Niedermayer
michaelni
Thu Sep 10 15:03:19 CEST 2009
On Thu, Sep 10, 2009 at 02:46:49PM +0200, Lars T?uber wrote:
> 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
> golomb.h | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
> c5027de4e5aca47fd73fa853475cdc78e0efc7b9 golomb-wide.diff
[...]
> get_bits.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> e23ae33f23fab5939af31da048d820c050086725 get_bits.diff
both ok (if tested)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090910/0b046440/attachment.pgp>
More information about the ffmpeg-devel
mailing list