encoder: Fix width and height to use rescaled resolution #9

Merged
Xaymar merged 1 commits from patch-8 into master 2019-10-31 06:34:59 +01:00
+2 -2
View File
@@ -621,8 +621,8 @@ void obsffmpeg::encoder::initialize_sw(obs_data_t* settings)
} }
} }
_context->width = voi->width; _context->width = static_cast<int>(obs_encoder_get_width(_self));
_context->height = voi->height; _context->height = static_cast<int>(obs_encoder_get_height(_self));
ffmpeg::tools::setup_obs_color(voi->colorspace, voi->range, _context); ffmpeg::tools::setup_obs_color(voi->colorspace, voi->range, _context);
_context->pix_fmt = _pixfmt_target; _context->pix_fmt = _pixfmt_target;