[FFmpeg-devel] [PATCH 1/3] get_bits: remove unused assignment

Timothy Gu timothygu99 at gmail.com
Wed Jul 16 05:56:28 CEST 2014


Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 libavcodec/get_bits.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index d8d7b6e..fd32535 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -408,7 +408,7 @@ static inline int init_get_bits(GetBitContext *s, const uint8_t *buffer,
     int ret = 0;
 
     if (bit_size >= INT_MAX - 7 || bit_size < 0 || !buffer) {
-        buffer_size = bit_size = 0;
+        bit_size    = 0;
         buffer      = NULL;
         ret         = AVERROR_INVALIDDATA;
     }
-- 
1.9.1



More information about the ffmpeg-devel mailing list