summaryrefslogtreecommitdiff
path: root/libavcodec/mv30.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-16 14:50:49 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-24 11:35:03 +0100
commit37f510d3f48fb0ab127694a77858dcc78346780c (patch)
tree7d14a666edfdd669c24ae750864cf50ab8fc73be /libavcodec/mv30.c
parent50d50653d106184b60f464eeba20e132c137090e (diff)
avcodec/mv30: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mv30.c')
-rw-r--r--libavcodec/mv30.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/mv30.c b/libavcodec/mv30.c
index 59088d84f8..a361873c80 100644
--- a/libavcodec/mv30.c
+++ b/libavcodec/mv30.c
@@ -379,9 +379,6 @@ static int decode_coeffs(GetBitContext *gb, int16_t *coeffs, int nb_codes)
for (int i = 0; i < nb_codes;) {
int value = get_vlc2(gb, cbp_tab.table, cbp_tab.bits, 1);
- if (value < 0)
- return AVERROR_INVALIDDATA;
-
if (value > 0) {
int x = get_bits(gb, value);