diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-31 10:19:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-11-02 23:46:31 +0100 |
commit | 1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc (patch) | |
tree | 26ca195cfff3e6959d53dd2330082b84a8f7f405 | |
parent | 506839a3e9cc34c8f719937430008fc12d132fce (diff) | |
download | ffmpeg-1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc.tar.gz |
avcodec/prosumer: Remove always true check in decompress()
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-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); |