Commit 1a1aa4e6 authored by mru's avatar mru

Bitstream: use AV_RB16() in LIBMPEG2_BITSTREAM_READER

This makes LIBMPEG2_BITSTREAM_READER_HACK redundant, so remove it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 52dd4b6c
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
//#define A32_BITSTREAM_READER //#define A32_BITSTREAM_READER
# endif # endif
#endif #endif
#define LIBMPEG2_BITSTREAM_READER_HACK //add BERO
extern const uint8_t ff_reverse[256]; extern const uint8_t ff_reverse[256];
...@@ -484,26 +483,13 @@ static inline void skip_bits_long(GetBitContext *s, int n){ ...@@ -484,26 +483,13 @@ static inline void skip_bits_long(GetBitContext *s, int n){
(gb)->cache= name##_cache;\ (gb)->cache= name##_cache;\
(gb)->buffer_ptr= name##_buffer_ptr;\ (gb)->buffer_ptr= name##_buffer_ptr;\
#ifdef LIBMPEG2_BITSTREAM_READER_HACK
# define UPDATE_CACHE(name, gb)\
if(name##_bit_count >= 0){\
name##_cache+= (int)be2me_16(*(uint16_t*)name##_buffer_ptr) << name##_bit_count;\
name##_buffer_ptr += 2;\
name##_bit_count-= 16;\
}\
#else
# define UPDATE_CACHE(name, gb)\ # define UPDATE_CACHE(name, gb)\
if(name##_bit_count >= 0){\ if(name##_bit_count >= 0){\
name##_cache+= ((name##_buffer_ptr[0]<<8) + name##_buffer_ptr[1]) << name##_bit_count;\ name##_cache+= AV_RB16(name##_buffer_ptr) << name##_bit_count; \
name##_buffer_ptr+=2;\ name##_buffer_ptr+=2;\
name##_bit_count-= 16;\ name##_bit_count-= 16;\
}\ }\
#endif
# define SKIP_CACHE(name, gb, num)\ # define SKIP_CACHE(name, gb, num)\
name##_cache <<= (num);\ name##_cache <<= (num);\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment