]> git.sesse.net Git - ffmpeg/commitdiff
imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jan 2012 01:40:18 +0000 (02:40 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jan 2012 01:40:18 +0000 (02:40 +0100)
Fixes selecting gray8a for PAM

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/imgconvert.c

index 8248793a0a869416447deb374f49fdcf1e17c08e..bbeb5a5ec0b0c7a4753ece904518cdd1553bb1e6 100644 (file)
@@ -184,6 +184,10 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
     [PIX_FMT_GRAY8] = {
         .color_type = FF_COLOR_GRAY,
     },
+    [PIX_FMT_GRAY8A] = {
+        .is_alpha = 1,
+        .color_type = FF_COLOR_GRAY,
+    },
     [PIX_FMT_MONOWHITE] = {
         .color_type = FF_COLOR_GRAY,
     },