From 76732846d7f626de7ce668045b3dd037036cada6 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 22 Feb 2023 21:43:32 +0100 Subject: [PATCH] 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). --- libobs/obs-source.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 497dab629..fd6dd3cb1 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -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; } }