X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bitstream.h;h=d052337c1a1825d29bc700c8a918177220dc4f74;hp=4f94f692b37c97b0f83baac551efc3f7305619c1;hb=ae9a1e8863223938de42debb38a20b2060e0c181;hpb=69adefaebbf29601ed3ba706e00c529e35436c16 diff --git a/bitstream.h b/bitstream.h index 4f94f692..d052337c 100644 --- a/bitstream.h +++ b/bitstream.h @@ -47,7 +47,7 @@ struct vlc { * Refill the internal cache from the bitstream. */ #define UPDATE_CACHE(name, gb)\ - name##_cache= AV_RB32( ((const uint8_t *)(gb)->buffer) \ + name##_cache= AV_RB32( ((gb)->buffer) \ + (name##_index >> 3) ) << (name##_index & 0x07);\ /**