From 1d858e076fe34f8286839fc8ecf464e97ef852a3 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 26 May 2020 21:53:46 -0400 Subject: [PATCH] add gray formats --- src/validation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/validation.c b/src/validation.c index e732e5e..39617c2 100644 --- a/src/validation.c +++ b/src/validation.c @@ -12,6 +12,9 @@ static int validate_video_pixel_format(enum AVPixelFormat format) { switch (format) { // Still image formats + case AV_PIX_FMT_GRAY8: + case AV_PIX_FMT_GRAY10: + case AV_PIX_FMT_GRAY12: case AV_PIX_FMT_RGB8: case AV_PIX_FMT_RGB24: case AV_PIX_FMT_RGB32: