[FFmpeg-cvslog] avformat/yuv4mpegdec: add support for 444alpha

Paul B Mahol git at videolan.org
Thu Mar 19 18:35:02 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Mar 19 11:11:24 2020 +0100| [c693e7b05336ada9cbc71882b83e33d6632ef5b1] | committer: Paul B Mahol

avformat/yuv4mpegdec: add support for 444alpha

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

 libavformat/yuv4mpegdec.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index addc03057e..980de7d145 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -124,9 +124,7 @@ static int yuv4_read_header(AVFormatContext *s)
             } else if (strncmp("422", tokstart, 3) == 0) {
                 pix_fmt = AV_PIX_FMT_YUV422P;
             } else if (strncmp("444alpha", tokstart, 8) == 0 ) {
-                av_log(s, AV_LOG_ERROR, "Cannot handle 4:4:4:4 "
-                       "YUV4MPEG stream.\n");
-                return -1;
+                pix_fmt = AV_PIX_FMT_YUVA444P;
             } else if (strncmp("444", tokstart, 3) == 0) {
                 pix_fmt = AV_PIX_FMT_YUV444P;
             } else if (strncmp("mono16", tokstart, 6) == 0) {



More information about the ffmpeg-cvslog mailing list