1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/prosumer: Remove always true check in decompress()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-10-31 10:19:08 +01:00
parent 506839a3e9
commit 1dfa0b6f36

View File

@ -62,7 +62,7 @@ static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const ui
if ((b & 0xFF00u) != 0x8000u || (b & 0xFFu)) { if ((b & 0xFF00u) != 0x8000u || (b & 0xFFu)) {
if ((b & 0xFF00u) != 0x8000u) { if ((b & 0xFF00u) != 0x8000u) {
bytestream2_put_le16(pb, b); bytestream2_put_le16(pb, b);
} else if (b & 0xFFu) { } else {
idx = 0; idx = 0;
for (int i = 0; i < (b & 0xFFu); i++) for (int i = 0; i < (b & 0xFFu); i++)
bytestream2_put_le32(pb, 0); bytestream2_put_le32(pb, 0);