[SCM] libav/experimental: imgutils: make systematic palette opaque.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:03:15 UTC 2014


The following commit has been merged in the experimental branch:
commit 4d8c28deab2488579f585406110b1be790896e59
Author: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date:   Fri Dec 23 11:43:29 2011 +0100

    imgutils: make systematic palette opaque.
    
    Signed-off-by: Anton Khirnov <anton at khirnov.net>

diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index a8b4d2a..813724b 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -170,7 +170,7 @@ int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt)
         default:
             return AVERROR(EINVAL);
         }
-        pal[i] = b + (g<<8) + (r<<16);
+        pal[i] = b + (g << 8) + (r << 16) + (0xFFU << 24);
     }
 
     return 0;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list