diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-09-05 13:00:43 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-09-05 13:03:03 +0200 |
commit | 4e012fc8afab9ab53a8dc693508409068af72ef9 (patch) | |
tree | ffb097cc79e11eac6aa2ea87f973a432739887c0 /libavcodec/notchlc.c | |
parent | 3249c757aed678780e22e99a1a49f4672851bca9 (diff) | |
download | ffmpeg-4e012fc8afab9ab53a8dc693508409068af72ef9.tar.gz |
avcodec/notchlc: simplify reading le16 in lz4_decompress
Diffstat (limited to 'libavcodec/notchlc.c')
-rw-r--r-- | libavcodec/notchlc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/notchlc.c b/libavcodec/notchlc.c index f9e03fdded..3f7079da70 100644 --- a/libavcodec/notchlc.c +++ b/libavcodec/notchlc.c @@ -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); |