0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

libobs: Fix non-exhaustive switch statements

New video formats introduced for ProRes 4444 encoding have not been
implemented in function calls used for video decoding, which makes the
switch statements non-exhaustive.

This does not functionally change the status quo (decoding ProRes 4444
files could still be broken because libobs does not explicitly handle
the colour format).
This commit is contained in:
PatTheMav 2023-02-22 21:43:32 +01:00 committed by Patrick Heyer
parent 112ca44158
commit 76732846d7

View File

@ -1638,6 +1638,11 @@ static inline enum convert_type get_convert_type(enum video_format format,
case VIDEO_FORMAT_P010:
return CONVERT_P010;
case VIDEO_FORMAT_P216:
case VIDEO_FORMAT_P416:
/* Unimplemented */
break;
}
return CONVERT_NONE;
@ -2208,6 +2213,11 @@ static const char *select_conversion_technique(enum video_format format,
else
return "RGB_Limited";
break;
case VIDEO_FORMAT_P216:
case VIDEO_FORMAT_P416:
/* Unimplemented */
break;
}
return NULL;
}
@ -3375,6 +3385,11 @@ static void copy_frame_data(struct obs_source_frame *dst,
copy_frame_data_plane(dst, src, 2, dst->height);
copy_frame_data_plane(dst, src, 3, dst->height);
break;
case VIDEO_FORMAT_P216:
case VIDEO_FORMAT_P416:
/* Unimplemented */
break;
}
}