add gray formats

This commit is contained in:
byte[] 2020-05-26 21:53:46 -04:00
parent 4bad902bec
commit 1d858e076f

View file

@ -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: