win-dshow: Add support for grayscale MJPEG
This commit is contained in:
parent
79d77ddf90
commit
22ea121f7c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue