diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index b7c68e1b9f..3339c126e6 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -380,7 +380,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; }