diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-08 10:15:31 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-24 11:35:03 +0100 |
commit | b81e6437ca1bb9e637b98ea862fbcd17ef2a065a (patch) | |
tree | 831185af18531facf3c80c07bee6783d1b5cc0a4 /libavcodec | |
parent | e68247d5cf3c4905555fe7565007cc4b24f5817b (diff) |
avcodec/qdmc: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qdmc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/qdmc.c b/libavcodec/qdmc.c index ff1cc86c6b..f4e507fa60 100644 --- a/libavcodec/qdmc.c +++ b/libavcodec/qdmc.c @@ -370,8 +370,6 @@ static int qdmc_get_vlc(GetBitContext *gb, VLC *table, int flag) if (get_bits_left(gb) < 1) return AVERROR_INVALIDDATA; v = get_vlc2(gb, table->table, table->bits, 2); - if (v < 0) - return AVERROR_INVALIDDATA; if (v) v = v - 1; else |