Commit a9fae763 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/gdv: Replace assert() checking bitstream by if()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 61b055be
......@@ -358,7 +358,8 @@ static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
if (val != ((1 << lbits) - 1)) {
break;
}
assert(lbits < 16);
if (lbits >= 16)
return AVERROR_INVALIDDATA;
}
for (i = 0; i < len; i++) {
bytestream2_put_byte(pb, bytestream2_get_byte(gb));
......
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