[FFmpeg-devel] [PATCH 09/11] avcodec/prosumer: remove unneeded variable from vertical_predict

Michael Niedermayer michael at niedermayer.cc
Sat Sep 22 19:14:05 EEST 2018


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

diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c
index 575b00baca..0fa0109950 100644
--- a/libavcodec/prosumer.c
+++ b/libavcodec/prosumer.c
@@ -134,13 +134,11 @@ static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const ui
 
 static void vertical_predict(uint32_t *dst, int offset, const uint32_t *src, int stride, int height)
 {
-    uint32_t x = (0x7F7F7F7F >> 1) & 0x7F7F7F7F;
-
     dst += offset >> 2;
 
     for (int i = 0; i < height; i++) {
         for (int j = 0; j < stride >> 2; j++) {
-            dst[j] = (((src[j] >> 3) + (x & dst[j])) << 3) & 0xFCFCFCFC;
+            dst[j] = (((src[j] >> 3) + (0x3F3F3F3F & dst[j])) << 3) & 0xFCFCFCFC;
         }
 
         dst += stride >> 2;
-- 
2.19.0



More information about the ffmpeg-devel mailing list