summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-23 20:22:31 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-27 10:33:11 +0100
commit0da310d7bedcad362e76bae289cec2524d8f5ece (patch)
tree845205ba564403ae33d43c2d5614ab822e433daa
parent5f8de7b74147e2a347481d7bc900ebecba6f340f (diff)
avcodec/mpeg4videodec: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/mpeg4videodec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index c26ad616b8..ff5c6acf67 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1845,10 +1845,7 @@ static int mpeg4_decode_studio_block(MpegEncContext *s, int32_t block[64], int n
quant_matrix = s->chroma_intra_matrix;
}
- if (dct_dc_size < 0) {
- av_log(s->avctx, AV_LOG_ERROR, "illegal dct_dc_size vlc\n");
- return AVERROR_INVALIDDATA;
- } else if (dct_dc_size == 0) {
+ if (dct_dc_size == 0) {
dct_diff = 0;
} else {
dct_diff = get_xbits(&s->gb, dct_dc_size);