mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
ffmpeg-encoder: Fall back to software encoding for scaling
This commit is contained in:
parent
ccb8a205b0
commit
b54e9431c0
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ ffmpeg_instance::ffmpeg_instance(obs_data_t* settings, obs_encoder_t* encoder, b
|
|||
if (is_texture_encode) {
|
||||
// Abort if user specified manual override.
|
||||
if ((static_cast<AVPixelFormat>(obs_data_get_int(settings, KEY_FFMPEG_COLORFORMAT)) != AV_PIX_FMT_NONE)
|
||||
|| (obs_data_get_int(settings, KEY_FFMPEG_GPU) != -1)) {
|
||||
|| (obs_data_get_int(settings, KEY_FFMPEG_GPU) != -1) || (obs_encoder_scaling_enabled(_self))) {
|
||||
throw std::runtime_error("Unable to create accelerated encoder due to user settings.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue