aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.h
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/mpeg12.h
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/mpeg12.h')
-rw-r--r--libavcodec/mpeg12.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h
index 1ec99f17e1..345d473d3a 100644
--- a/libavcodec/mpeg12.h
+++ b/libavcodec/mpeg12.h
@@ -47,10 +47,6 @@ static inline int decode_dc(GetBitContext *gb, int component)
} else {
code = get_vlc2(gb, ff_dc_chroma_vlc.table, DC_VLC_BITS, 2);
}
- if (code < 0){
- av_log(NULL, AV_LOG_ERROR, "invalid dc code at\n");
- return 0xffff;
- }
if (code == 0) {
diff = 0;
} else {