From d9816cd5df2200bc41c244298cdd30fc3475d038 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 15 Jan 2012 02:40:18 +0100 Subject: [PATCH] imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info Fixes selecting gray8a for PAM Signed-off-by: Michael Niedermayer --- libavcodec/imgconvert.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 8248793a0a..bbeb5a5ec0 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, },