aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/yuv4mpegdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-03-19 11:11:24 +0100
committerPaul B Mahol <onemda@gmail.com>2020-03-19 17:34:31 +0100
commitc693e7b05336ada9cbc71882b83e33d6632ef5b1 (patch)
treeaca49409114082f5817bdf1099a68eba69f83db4 /libavformat/yuv4mpegdec.c
parent4eb5dfb52e3fc31c917b3d5adae24116b5bf2ef3 (diff)
downloadffmpeg-c693e7b05336ada9cbc71882b83e33d6632ef5b1.tar.gz
avformat/yuv4mpegdec: add support for 444alpha
Diffstat (limited to 'libavformat/yuv4mpegdec.c')
-rw-r--r--libavformat/yuv4mpegdec.c4
1 files changed, 1 insertions, 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) {