mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user