From 4bad902bec905b9cb9a6ef7f89e716542ca198f2 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 26 May 2020 21:49:05 -0400 Subject: [PATCH] add more supported pixel formats --- src/validation.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/validation.c b/src/validation.c index b76d903..e732e5e 100644 --- a/src/validation.c +++ b/src/validation.c @@ -17,14 +17,18 @@ static int validate_video_pixel_format(enum AVPixelFormat format) case AV_PIX_FMT_RGB32: case AV_PIX_FMT_RGB48: case AV_PIX_FMT_RGBA: + case AV_PIX_FMT_YUVJ420P: + case AV_PIX_FMT_YUVJ422P: + case AV_PIX_FMT_YUVJ444P: + case AV_PIX_FMT_YUVJ440P: // Video frame formats case AV_PIX_FMT_YUV420P: - case AV_PIX_FMT_YUVJ420P: case AV_PIX_FMT_YUV420P10LE: case AV_PIX_FMT_YUV422P: case AV_PIX_FMT_YUV422P10LE: case AV_PIX_FMT_YUV444P: + case AV_PIX_FMT_YUV440P: case AV_PIX_FMT_YUV444P10LE: case AV_PIX_FMT_YUV420P12LE: case AV_PIX_FMT_YUV422P12LE: