diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-16 15:10:42 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-16 15:34:35 +0000 |
commit | b8909cb3648c135411c17152e2cb3fde4df452d3 (patch) | |
tree | 22b0f35833f72659902a47a79b5d8ba3daf85742 /libavcodec/get_bits.h | |
parent | 54e75be420e687867f9739b210d95015b31c3819 (diff) | |
download | ffmpeg-b8909cb3648c135411c17152e2cb3fde4df452d3.tar.gz |
get_bits: remove useless pointer casts
These pointers are already of the correct type.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/get_bits.h')
-rw-r--r-- | libavcodec/get_bits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 79802848d4..4c03e412ce 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -133,12 +133,12 @@ for examples see get_bits, show_bits, skip_bits, get_vlc # ifdef ALT_BITSTREAM_READER_LE # define UPDATE_CACHE(name, gb) \ - name##_cache = AV_RL32(((const uint8_t *)(gb)->buffer)+(name##_index>>3)) >> (name##_index&0x07) + name##_cache = AV_RL32((gb)->buffer+(name##_index>>3)) >> (name##_index&0x07) # define SKIP_CACHE(name, gb, num) name##_cache >>= (num) # else # define UPDATE_CACHE(name, gb) \ - name##_cache = AV_RB32(((const uint8_t *)(gb)->buffer)+(name##_index>>3)) << (name##_index&0x07) + name##_cache = AV_RB32((gb)->buffer+(name##_index>>3)) << (name##_index&0x07) # define SKIP_CACHE(name, gb, num) name##_cache <<= (num) # endif |