add support for monoblack/monowhite

This commit is contained in:
byte[] 2020-05-27 00:35:37 -04:00
parent db5d2462e6
commit 2958078a9b

View file

@ -12,6 +12,8 @@ static int validate_video_pixel_format(enum AVPixelFormat format)
{ {
switch (format) { switch (format) {
// Still image formats // Still image formats
case AV_PIX_FMT_MONOBLACK:
case AV_PIX_FMT_MONOWHITE:
case AV_PIX_FMT_YA16LE: case AV_PIX_FMT_YA16LE:
case AV_PIX_FMT_YA16BE: case AV_PIX_FMT_YA16BE:
case AV_PIX_FMT_GRAY8: case AV_PIX_FMT_GRAY8: