From 24d2346a1ca65f8fbd13daa1f7bc6845e2b2a1c3 Mon Sep 17 00:00:00 2001 From: Luke Yelavich Date: Wed, 7 Mar 2018 10:06:49 +1100 Subject: [PATCH] mac-vth264: Set the fullrange variable before calling vt_h264_video_info The fullrange variable is used to set appropriate video format information in vt_h264_video_info. Set fullrange first so the video format data is correct in all cases. --- plugins/mac-vth264/encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mac-vth264/encoder.c b/plugins/mac-vth264/encoder.c index f5bb5e454..a9aab1f64 100644 --- a/plugins/mac-vth264/encoder.c +++ b/plugins/mac-vth264/encoder.c @@ -445,11 +445,12 @@ static void update_params(struct vt_h264_encoder *enc, obs_data_t *settings) struct video_scale_info info = { .format = voi->format }; + enc->fullrange = voi->range == VIDEO_RANGE_FULL; + // also sets the enc->vt_pix_fmt vt_h264_video_info(enc, &info); enc->colorspace = voi->colorspace; - enc->fullrange = voi->range == VIDEO_RANGE_FULL; enc->width = obs_encoder_get_width(enc->encoder); enc->height = obs_encoder_get_height(enc->encoder);