]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/clearvideo: Don't check for errors for complete VLC
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 24 Oct 2020 13:26:55 +0000 (15:26 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 29 Oct 2020 10:22:35 +0000 (11:22 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/clearvideo.c

index 65bf1404016e1152c1718125455310eaee5a3e30..73c0367f711a09c644d7495d77ece4fd493a6f20 100644 (file)
@@ -88,8 +88,6 @@ static inline int decode_block(CLVContext *ctx, int16_t *blk, int has_ac,
 
     memset(blk, 0, sizeof(*blk) * 64);
     blk[0] = get_vlc2(gb, ctx->dc_vlc.table, 9, 3);
-    if (blk[0] < 0)
-        return AVERROR_INVALIDDATA;
     blk[0] -= 63;
 
     if (!has_ac)