1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

init_get_bits8: zero pointers & struct on error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-14 16:23:39 +01:00
parent ac73d3a12a
commit 153fad14e5

View File

@ -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);
}