Commit 153fad14 authored by Michael Niedermayer's avatar Michael Niedermayer

init_get_bits8: zero pointers & struct on error

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ac73d3a1
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment