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

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jan 29 23:56:38 CET 2012


Hi!

Attached patch fixes pix_fmt auto-selection when decoding yuva444p.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 9fcd94c..51f6b0e 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -113,6 +113,11 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
         .color_type = FF_COLOR_YUV,
     },
 
+    [PIX_FMT_YUVA444P] = {
+        .is_alpha = 1,
+        .color_type = FF_COLOR_YUV,
+    },
+
     /* JPEG YUV */
     [PIX_FMT_YUVJ420P] = {
         .color_type = FF_COLOR_YUV_JPEG,


More information about the ffmpeg-devel mailing list