[FFmpeg-devel] [PATCH]Fix pix_fmt_info for yuva420

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jan 16 15:35:32 CET 2012


Hi!

Attached patch fixes pix_fmt selection for yuva420 -> png (and similar).
It also "fixes" ticket #290.

Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index bbeb5a5..e600d1c 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -109,6 +109,7 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
 
     /* YUV formats with alpha plane */
     [PIX_FMT_YUVA420P] = {
+        .is_alpha = 1,
         .color_type = FF_COLOR_YUV,
     },
 


More information about the ffmpeg-devel mailing list