aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/speedhq.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-12 04:08:07 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-12 22:17:22 +0200
commit7b6acfa68f034c6e2cf2455dbc0f96d959ef36b0 (patch)
treec58c903badb4012a30365fb7dfc90c3b5aec5d06 /libavcodec/speedhq.c
parent57eee75c3fd075e555df122f1abc45ca636a2726 (diff)
downloadffmpeg-7b6acfa68f034c6e2cf2455dbc0f96d959ef36b0.tar.gz
avcodec/speedhq: Don't pretend reading DC can fail
It can't, because the tables used don't have any loose ends. This also fixes a bug in the only caller of decode_dc_le(): It didn't check the return value. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/speedhq.c')
-rw-r--r--libavcodec/speedhq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
index b834b79f28..64758164de 100644
--- a/libavcodec/speedhq.c
+++ b/libavcodec/speedhq.c
@@ -168,10 +168,6 @@ static inline int decode_dc_le(GetBitContext *gb, int component)
} else {
code = get_vlc2(gb, ff_dc_chroma_vlc_le.table, DC_VLC_BITS, 2);
}
- if (code < 0) {
- av_log(NULL, AV_LOG_ERROR, "invalid dc code at\n");
- return 0xffff;
- }
if (!code) {
diff = 0;
} else {