[FFmpeg-cvslog] Fix pix_fmt_info for yuva420.

Carl Eugen Hoyos git at videolan.org
Tue Jan 17 00:42:15 CET 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Jan 17 00:30:28 2012 +0100| [dc2f652ae4ca4e4093b6a90d82b09e0545b84c7f] | committer: Carl Eugen Hoyos

Fix pix_fmt_info for yuva420.

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

Fixes ticket #290.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc2f652ae4ca4e4093b6a90d82b09e0545b84c7f
---

 libavcodec/imgconvert.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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-cvslog mailing list