diff options
-rw-r--r-- | libavcodec/get_bits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 1946c78af2..964456ee5d 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -407,7 +407,7 @@ static inline int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size) { if (byte_size > INT_MAX / 8 || byte_size < 0) - return AVERROR_INVALIDDATA; + byte_size = -1; return init_get_bits(s, buffer, byte_size * 8); } |