diff --git a/libobs/media-io/video-io.h b/libobs/media-io/video-io.h index 6eb986826add55f60e9f77090300f252db94f37a..fc2a3cb987d4164814715584697f625da72d0af4 100644 --- a/libobs/media-io/video-io.h +++ b/libobs/media-io/video-io.h @@ -177,7 +177,8 @@ static inline const char *get_video_colorspace_name(enum video_colorspace cs) case VIDEO_CS_709: return "709"; case VIDEO_CS_601: - case VIDEO_CS_DEFAULT:; + case VIDEO_CS_DEFAULT: + case VIDEO_CS_SRGB:; } return "601"; diff --git a/libobs/media-io/video-scaler-ffmpeg.c b/libobs/media-io/video-scaler-ffmpeg.c index 5ee389ccdc66974870cbbb58f5ff78c48660122f..493b7aa37e3aabef80a64e3f6986af71bc8f8bca 100644 --- a/libobs/media-io/video-scaler-ffmpeg.c +++ b/libobs/media-io/video-scaler-ffmpeg.c @@ -94,9 +94,9 @@ static inline const int *get_ffmpeg_coeffs(enum video_colorspace cs) return sws_getCoefficients(SWS_CS_ITU601); case VIDEO_CS_709: return sws_getCoefficients(SWS_CS_ITU709); + default: + return sws_getCoefficients(SWS_CS_ITU601); } - - return sws_getCoefficients(SWS_CS_ITU601); } static inline int get_ffmpeg_range_type(enum video_range_type type) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index a5e318c7af37c5685c37e4e1e8918d0d56c127d9..2db39408c347254daf756e506e848c5eb50a99d0 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -367,6 +367,7 @@ static inline const char *get_x264_colorspace_name(enum video_colorspace cs) switch (cs) { case VIDEO_CS_DEFAULT: case VIDEO_CS_601: + case VIDEO_CS_SRGB: return "undef"; case VIDEO_CS_709:; }