From 92b5643081b4fd166013e62dd563cb197a3eb9a6 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 5 Jul 2024 19:15:12 -0700 Subject: [PATCH] libobs: Remove broken rescale modification logic This logic would previously have written any changed scale resolution set by the encoder in the `.get_video_info` callback back to the encoder, however this functionality was "broken" by 20d8779d30fd5cfd7f2ebd6b3eb7777c3b99b19f. In reality, this would have never worked with texture encoders or with GPU rescaling enabled, and probably would have had odd side effects for CPU rescaling, too. It's best just to remove this functionality. --- libobs/obs-encoder.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libobs/obs-encoder.c b/libobs/obs-encoder.c index 77698ae44..c0f53d061 100644 --- a/libobs/obs-encoder.c +++ b/libobs/obs-encoder.c @@ -186,9 +186,6 @@ static inline void get_video_info(struct obs_encoder *encoder, if (encoder->info.get_video_info) encoder->info.get_video_info(encoder->context.data, info); - - if (info->width != voi->width || info->height != voi->height) - obs_encoder_set_scaled_size(encoder, info->width, info->height); } static inline bool gpu_encode_available(const struct obs_encoder *encoder)