mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avcodec/gdv: Replace assert() checking bitstream by if()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
61b055bed0
commit
a9fae76370
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user