[FFmpeg-devel] [PATCH] make get_ur_golomb capable of reading 16 bit values
Michael Niedermayer
michaelni
Thu Sep 10 13:56:41 CEST 2009
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()
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- 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/685107ba/attachment.pgp>
More information about the ffmpeg-devel
mailing list