Browse Source

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>
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
7b6acfa68f
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavcodec/speedhq.c

+ 0
- 4
libavcodec/speedhq.c View File

@@ -168,10 +168,6 @@ static inline int decode_dc_le(GetBitContext *gb, int component)
} else { } else {
code = get_vlc2(gb, ff_dc_chroma_vlc_le.table, DC_VLC_BITS, 2); 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) { if (!code) {
diff = 0; diff = 0;
} else { } else {


Loading…
Cancel
Save