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

Michael Niedermayer michael at niedermayer.cc
Wed Oct 31 13:01:14 EET 2018


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/prosumer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-devel mailing list