Browse Source

avcodec/notchlc: simplify reading le16 in lz4_decompress

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
4e012fc8af
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/notchlc.c

+ 1
- 2
libavcodec/notchlc.c View File

@@ -108,8 +108,7 @@ static int lz4_decompress(AVCodecContext *avctx,
if (bytestream2_get_bytes_left(gb) <= 0)
break;

delta = bytestream2_get_byte(gb);
delta |= (unsigned)bytestream2_get_byte(gb) << 8;
delta = bytestream2_get_le16(gb);
if (delta == 0)
return 0;
match_length = 4 + (token & 0x0F);


Loading…
Cancel
Save