From dc2f652ae4ca4e4093b6a90d82b09e0545b84c7f Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos@ag.or.at>
Date: Tue, 17 Jan 2012 00:30:28 +0100
Subject: [PATCH] Fix pix_fmt_info for yuva420.

This allows correct output pix_fmt auto-selection
if the input pix_fmt is yuva420.

Fixes ticket #290.
---
 libavcodec/imgconvert.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index bbeb5a5ec0b..e600d1cc786 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,
     },
 
-- 
GitLab