[FFmpeg-cvslog] init_get_bits8: zero pointers & struct on error
Michael Niedermayer
git at videolan.org
Sun Jan 20 01:12:08 CET 2013
ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 14 16:23:39 2013 +0100| [6f3bc92c294b4ce903047e1fd43d71e59c86337b] | committer: Michael Niedermayer
init_get_bits8: zero pointers & struct on error
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 153fad14e5a2f85637aa6c254ced0fc1c68974e2)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f3bc92c294b4ce903047e1fd43d71e59c86337b
---
libavcodec/get_bits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 1946c78..964456e 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);
}
More information about the ffmpeg-cvslog
mailing list