diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-08 02:01:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-20 18:58:38 +0200 |
commit | 1d270e99f96511ae5667e101663e6cba6d890cdd (patch) | |
tree | fe97b068294ab382460d84162d6672ee74e9bc84 /libavcodec | |
parent | 963bdac226b611664bdd033a8b3a914e5e148ebd (diff) | |
download | ffmpeg-1d270e99f96511ae5667e101663e6cba6d890cdd.tar.gz |
avcodec/mpeg4videodec: Remove always-false check
All valid values of dc_lum and dc_chrom are in the range 0..9,
because they are initialized via tables with 10 elements.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 18329132aa..130cde7a9d 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -895,7 +895,7 @@ static inline int mpeg4_decode_dc(MpegEncContext *s, int n, int *dir_ptr) else code = get_vlc2(&s->gb, dc_chrom, DC_VLC_BITS, 1); - if (code < 0 || code > 9 /* && s->nbit < 9 */) { + if (code < 0) { av_log(s->avctx, AV_LOG_ERROR, "illegal dc vlc\n"); return AVERROR_INVALIDDATA; } |