mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/hqx: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
a03caa384f
commit
e68247d5cf
@ -122,8 +122,6 @@ static int decode_block(GetBitContext *gb, VLC *vlc,
|
|||||||
|
|
||||||
memset(block, 0, 64 * sizeof(*block));
|
memset(block, 0, 64 * sizeof(*block));
|
||||||
dc = get_vlc2(gb, vlc->table, HQX_DC_VLC_BITS, 2);
|
dc = get_vlc2(gb, vlc->table, HQX_DC_VLC_BITS, 2);
|
||||||
if (dc < 0)
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
*last_dc += dc;
|
*last_dc += dc;
|
||||||
|
|
||||||
block[0] = sign_extend(*last_dc << (12 - dcb), 12);
|
block[0] = sign_extend(*last_dc << (12 - dcb), 12);
|
||||||
|
Loading…
Reference in New Issue
Block a user