aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-07-14 14:05:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-07-14 14:05:10 +0000
commit02e0aa20a8e55534624d23be92f040ef8a8c7a5c (patch)
tree93b1648d51d83c30d73fc4285d5ac8e3fcb39503 /libavcodec/svq1.c
parentd200cab674656357fefe8dcb624e537edfd0a8c3 (diff)
downloadffmpeg-02e0aa20a8e55534624d23be92f040ef8a8c7a5c.tar.gz
faster get_bit_cache
Originally committed as revision 757 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r--libavcodec/svq1.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index c0c2bccf2a..fe97970016 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -27,15 +27,19 @@
#include <string.h>
#include <unistd.h>
-#define ALT_BITSTREAM_READER
-#define ALIGNED_BITSTREAM
#include "common.h"
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "bswap.h"
#define bit_buffer_t GetBitContext
-#define get_bit_cache(buf) (show_bits(buf,24)<<8)
+
+static inline unsigned int get_bit_cache(GetBitContext *s){
+ OPEN_READER(re, s)
+ UPDATE_CACHE(re, s)
+ return GET_CACHE(re, s);
+// CLOSE_READER(re, s)
+}
/* variable length (bit) code */
typedef struct vlc_code_s {