[FFmpeg-cvslog] get_bits: remove useless pointer casts
Mans Rullgard
git at videolan.org
Sat Dec 17 02:23:02 CET 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Dec 16 15:10:42 2011 +0000| [b8909cb3648c135411c17152e2cb3fde4df452d3] | committer: Mans Rullgard
get_bits: remove useless pointer casts
These pointers are already of the correct type.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8909cb3648c135411c17152e2cb3fde4df452d3
---
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 7980284..4c03e41 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
More information about the ffmpeg-cvslog
mailing list