diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-29 15:26:06 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-03 16:21:10 +0100 |
commit | 7781aa85bc7283676ba7f90988f4ed5dbcfc6a0d (patch) | |
tree | 12ff2e5bace9e097221c32c5abb236ffee868e8b | |
parent | 158265b439083f730eb36df27b6979aff2f6f83b (diff) | |
download | ffmpeg-7781aa85bc7283676ba7f90988f4ed5dbcfc6a0d.tar.gz |
avcodec/tscc2: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavcodec/tscc2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 6aadb51ad4..9fa28fe9fc 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -151,8 +151,6 @@ static int tscc2_decode_mb(TSCC2Context *c, int *q, int vlc_set, dc = get_bits(gb, 8); } else { dc = get_vlc2(gb, c->dc_vlc.table, 9, 2); - if (dc == -1) - return AVERROR_INVALIDDATA; if (dc == 0x100) dc = get_bits(gb, 8); } @@ -161,15 +159,11 @@ static int tscc2_decode_mb(TSCC2Context *c, int *q, int vlc_set, c->block[0] = dc; nc = get_vlc2(gb, c->nc_vlc[vlc_set].table, 9, 1); - if (nc == -1) - return AVERROR_INVALIDDATA; bpos = 1; memset(c->block + 1, 0, 15 * sizeof(*c->block)); for (l = 0; l < nc; l++) { ac = get_vlc2(gb, c->ac_vlc[vlc_set].table, 9, 2); - if (ac == -1) - return AVERROR_INVALIDDATA; if (ac == 0x1000) ac = get_bits(gb, 12); bpos += ac & 0xF; |