mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-20 01:59:17 +00:00
libobs: Fix incomplete struct in scaler call
Fixes the Rescale Output range and colorspace conversion issue. When range and colorspace properties were missing and thus undefined: get_ffmpeg_coeffs returns SWS_CS_ITU601 get_ffmpeg_range_type returns 0 (wich is VIDEO_RANGE_PARTIAL). Should solve mantis: https://obsproject.com/mantis/view.php?id=947 More info: https://obsproject.com/forum/threads/x264-rescale-output-over-saturating-colors.69730/
This commit is contained in:
parent
2f577c1b71
commit
ac906ba6e5
|
@ -302,6 +302,8 @@ static inline bool video_input_init(struct video_input *input,
|
||||||
.format = video->info.format,
|
.format = video->info.format,
|
||||||
.width = video->info.width,
|
.width = video->info.width,
|
||||||
.height = video->info.height,
|
.height = video->info.height,
|
||||||
|
.range = video->info.range,
|
||||||
|
.colorspace = video->info.colorspace
|
||||||
};
|
};
|
||||||
|
|
||||||
int ret = video_scaler_create(&input->scaler,
|
int ret = video_scaler_create(&input->scaler,
|
||||||
|
|
Loading…
Reference in a new issue