]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/escape124.c
x86: Remove duplicated AVG_3DNOW_OP / AVG_MMX2_OP macros from h264_qpel_mmx.c.
[ffmpeg] / libavcodec / escape124.c
index 815cd58a9b19ac5c42aa54b497c5a9f74dbb7d3f..a9f083325f5645bcb4f4d7a959b422c023e3cdef 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "avcodec.h"
 
-#define ALT_BITSTREAM_READER_LE
+#define BITSTREAM_READER_LE
 #include "get_bits.h"
 
 typedef union MacroBlock {
@@ -49,7 +49,7 @@ typedef struct Escape124Context {
 } Escape124Context;
 
 static int can_safely_read(GetBitContext* gb, int bits) {
-    return get_bits_count(gb) + bits <= gb->size_in_bits;
+    return get_bits_left(gb) >= bits;
 }
 
 /**
@@ -374,4 +374,3 @@ AVCodec ff_escape124_decoder = {
     .capabilities   = CODEC_CAP_DR1,
     .long_name = NULL_IF_CONFIG_SMALL("Escape 124"),
 };
-