aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-08 17:54:19 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-12 02:10:41 +0200
commit7800cc6e82068c6dfb5af53817f03dfda794c568 (patch)
tree4700bdd8b4d922423ce2d56b8857a342fb48e84b /libavcodec/mdec.c
parentc4990409f2edf5ec034e47aa79e8b9f5cc798d3a (diff)
downloadffmpeg-7800cc6e82068c6dfb5af53817f03dfda794c568.tar.gz
avcodec/mpeg12: Don't pretend reading dct_dc_size_* VLCs can fail
It can't because the corresponding trees don't have any loose ends. Removing the checks also removed an instance of av_log(NULL (with a nonsense message) from the codebase. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index 7e34ec568e..b16cbb6a79 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -71,8 +71,6 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n)
} else {
component = (n <= 3 ? 0 : n - 4 + 1);
diff = decode_dc(&a->gb, component);
- if (diff >= 0xffff)
- return AVERROR_INVALIDDATA;
a->last_dc[component] += diff;
block[0] = a->last_dc[component] * (1 << 3);
}