mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 06:20:43 +09:00
Remove video_alignment_padding variable, replace with putting capture content in the center with frame resolution and capture resolution diff
This commit is contained in:
@@ -112,9 +112,6 @@ int gsr_capture_xcomposite_start(gsr_capture_xcomposite *self, AVCodecContext *v
|
||||
video_codec_context->height = FFALIGN(video_size.y, 2);
|
||||
}
|
||||
|
||||
self->base.video_alignment_padding.x = self->base.video_codec_context->width - video_size.x;
|
||||
self->base.video_alignment_padding.y = self->base.video_codec_context->height - video_size.y;
|
||||
|
||||
frame->width = video_codec_context->width;
|
||||
frame->height = video_codec_context->height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user