encoder: Fix width and height to use rescaled resolution
The function video_output_get_info does not contain rescaling information from the output tab, so by replacing it with obs_encoder_get_width/height we can actually use the scaled resolution.
This commit was merged in pull request #9.
This commit is contained in:
committed by
Michael Fabian Dirks
parent
b6e881b90f
commit
b2b5cd8fad
+2
-2
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user