[FFmpeg-cvslog] avcodec/prosumer: Remove always true check in decompress()

Michael Niedermayer git at videolan.org
Sat Nov 3 00:47:47 EET 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Oct 31 10:19:08 2018 +0100| [1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc] | committer: Michael Niedermayer

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

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dfa0b6f36d29293f2d0219c4095dc8bb7a4b0dc
---

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



More information about the ffmpeg-cvslog mailing list