1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-07-11 14:30:22 +02:00

avcodec/notchlc: simplify reading le16 in lz4_decompress

This commit is contained in:
Paul B Mahol
2020-09-05 13:00:43 +02:00
parent 3249c757ae
commit 4e012fc8af

View File

@ -108,8 +108,7 @@ static int lz4_decompress(AVCodecContext *avctx,
if (bytestream2_get_bytes_left(gb) <= 0) if (bytestream2_get_bytes_left(gb) <= 0)
break; break;
delta = bytestream2_get_byte(gb); delta = bytestream2_get_le16(gb);
delta |= (unsigned)bytestream2_get_byte(gb) << 8;
if (delta == 0) if (delta == 0)
return 0; return 0;
match_length = 4 + (token & 0x0F); match_length = 4 + (token & 0x0F);