ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sat Sep 5 13:00:43 2020 +0200| [4e012fc8afab9ab53a8dc693508409068af72ef9] | committer: Paul B Mahol
avcodec/notchlc: simplify reading le16 in lz4_decompress > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e012fc8afab9ab53a8dc693508409068af72ef9 --- libavcodec/notchlc.c | 3 +-- 1 file changed, 1 insertion(+), 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".