From b203f36130b94b5dada8e47179a89c7bb82ff808 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 1 Aug 2014 09:34:40 -0700 Subject: [PATCH] Fix automatic scaling bug The bug here is that when conversion is active, the source video frame is initialized with the destination height/width/format instead of the source height/width/format. --- libobs/media-io/video-io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libobs/media-io/video-io.c b/libobs/media-io/video-io.c index 749423cb0..47a56a1af 100644 --- a/libobs/media-io/video-io.c +++ b/libobs/media-io/video-io.c @@ -272,9 +272,9 @@ static inline bool video_input_init(struct video_input *input, for (size_t i = 0; i < MAX_CONVERT_BUFFERS; i++) video_frame_init(&input->frame[i], - input->conversion.format, - input->conversion.width, - input->conversion.height); + video->info.format, + video->info.width, + video->info.height); } return true;