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:
dec05eba
2024-06-10 18:41:05 +02:00
parent adbd5d9766
commit e43934e2d2
4 changed files with 10 additions and 11 deletions

View File

@@ -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;