From 22ea121f7cfcbfb51d0bf24bdf9ec24c16e4df0f Mon Sep 17 00:00:00 2001 From: Staacks Date: Mon, 10 Jul 2023 00:17:53 +0200 Subject: [PATCH] win-dshow: Add support for grayscale MJPEG --- plugins/win-dshow/ffmpeg-decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/win-dshow/ffmpeg-decode.c b/plugins/win-dshow/ffmpeg-decode.c index 88ad83143..541f59fae 100644 --- a/plugins/win-dshow/ffmpeg-decode.c +++ b/plugins/win-dshow/ffmpeg-decode.c @@ -125,6 +125,8 @@ static inline enum video_format convert_pixel_format(int f) switch (f) { case AV_PIX_FMT_NONE: return VIDEO_FORMAT_NONE; + case AV_PIX_FMT_GRAY8: + return VIDEO_FORMAT_Y800; case AV_PIX_FMT_YUV420P: case AV_PIX_FMT_YUVJ420P: return VIDEO_FORMAT_I420;