[FFmpeg-devel] [PATCH] imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info
Michael Niedermayer
michaelni at gmx.at
Sun Jan 15 02:41:11 CET 2012
Fixes selecting gray8a for PAM
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/imgconvert.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 8248793..bbeb5a5 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -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,
},
--
1.7.5.4
More information about the ffmpeg-devel
mailing list