[FFmpeg-devel] [PATCH]Make systematic palette opaque

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Dec 15 01:14:34 CET 2011


Hi!

Whatever a systematic palette is, I don't think it should be transparent.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 6e97085..3847c53 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -175,7 +175,7 @@ int ff_set_systematic_pal2(uint32_t pal[256], enum PixelFormat pix_fmt)
         default:
             return AVERROR(EINVAL);
         }
-        pal[i] = b + (g<<8) + (r<<16);
+        pal[i] = b + (g<<8) + (r<<16) + (0xFF<<24);
     }
 
     return 0;


More information about the ffmpeg-devel mailing list