Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Michael Niedermayer 6 years ago
parent
commit
a9fae76370
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/gdv.c

+ 2
- 1
libavcodec/gdv.c View File

@@ -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…
Cancel
Save