diff --git a/source/encoder.cpp b/source/encoder.cpp index 4a79c62..c5f6a8c 100644 --- a/source/encoder.cpp +++ b/source/encoder.cpp @@ -621,8 +621,8 @@ void obsffmpeg::encoder::initialize_sw(obs_data_t* settings) } } - _context->width = voi->width; - _context->height = voi->height; + _context->width = static_cast(obs_encoder_get_width(_self)); + _context->height = static_cast(obs_encoder_get_height(_self)); ffmpeg::tools::setup_obs_color(voi->colorspace, voi->range, _context); _context->pix_fmt = _pixfmt_target;