aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-14 16:23:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-14 16:35:41 +0100
commit153fad14e5a2f85637aa6c254ced0fc1c68974e2 (patch)
treec32c33d5f5676846723688a61971992f8da71c80
parentac73d3a12a33c5e4e6357d5f8824e19801663eb5 (diff)
downloadffmpeg-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.h2
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);
}