[FFmpeg-devel] [PATCH] imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Jan 17 13:59:31 CET 2012
Michael Niedermayer <michaelni <at> gmx.at> writes:
> +++ 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,
pal8 is now chosen for bmp and tif if the input is gray8a.
This is not a good idea, because pal8 should never be selected by default afaict.
Carl Eugen
More information about the ffmpeg-devel
mailing list