diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 16:23:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 16:35:41 +0100 |
commit | 153fad14e5a2f85637aa6c254ced0fc1c68974e2 (patch) | |
tree | c32c33d5f5676846723688a61971992f8da71c80 | |
parent | ac73d3a12a33c5e4e6357d5f8824e19801663eb5 (diff) | |
download | ffmpeg-153fad14e5a2f85637aa6c254ced0fc1c68974e2.tar.gz |
init_get_bits8: zero pointers & struct on error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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); } |