]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/mv30: Don't check for errors for complete VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 16 Nov 2020 13:50:49 +0000 (14:50 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Nov 2020 10:35:03 +0000 (11:35 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mv30.c

index 59088d84f8d9829ea04333450d5dd7977b1e3176..a361873c8051e58f61801e06cc47cea6079d7326 100644 (file)
@@ -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);