Make systematic palette opaque.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 23 Dec 2011 10:43:29 +0000 (11:43 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 23 Dec 2011 10:43:29 +0000 (11:43 +0100)
libavutil/imgutils.c

index 6e97085..3847c53 100644 (file)
@@ -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;