diff options
author | Michael Niedermayer <[email protected]> | 2018-10-31 10:19:08 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2018-11-04 20:26:49 +0100 |
commit | fd05e20650a50f3cd2b660367d0e73cb8fef9a07 (patch) | |
tree | 8c4e8e6f7d6cd48c813ab14b52018b4e56f115ab | |
parent | a163384467ddaef143b86d611d3717ffbc4a0134 (diff) |
avcodec/prosumer: Remove always true check in decompress()
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavcodec/prosumer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c index 24905ac80f..3125636cf1 100644 --- a/libavcodec/prosumer.c +++ b/libavcodec/prosumer.c @@ -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) { bytestream2_put_le16(pb, b); - } else if (b & 0xFFu) { + } else { idx = 0; for (int i = 0; i < (b & 0xFFu); i++) bytestream2_put_le32(pb, 0); |