diff mbox

[FFmpeg-devel,3/4] avcodec/prosumer: Remove always true check in decompress()

Message ID 20181031110115.31474-3-michael@niedermayer.cc
State Accepted
Commit 1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc
Headers show

Commit Message

Michael Niedermayer Oct. 31, 2018, 11:01 a.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/prosumer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);