Merge pull request #2336 from cg2121/fix-warnings
libobs, obs-x264: Fix compiler warnings
This commit is contained in:
commit
44dc06ede4
3 changed files with 5 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue