From 05347a3c0345d10e7f146afa75a9849a873e739f Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Wed, 26 Mar 2025 11:38:56 +0100 Subject: [PATCH] ges: fix frame position for sources with par > 1 A source with 1920x1080 and par 16:15 has a natural size of 2048x1080. The current code is incorrectly setting the natural width as height resulting in 1920x2048. Part-of: --- subprojects/gst-editing-services/ges/ges-video-uri-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-editing-services/ges/ges-video-uri-source.c b/subprojects/gst-editing-services/ges/ges-video-uri-source.c index fe6d5149e2..80ac63d46f 100644 --- a/subprojects/gst-editing-services/ges/ges-video-uri-source.c +++ b/subprojects/gst-editing-services/ges/ges-video-uri-source.c @@ -126,7 +126,7 @@ ges_video_uri_source_get_natural_size (GESVideoSource * source, gint * width, if (*height % par_n == 0) { *height = gst_util_uint64_scale_int (*height, par_d, par_n); } else if (*width % par_d == 0) { - *height = gst_util_uint64_scale_int (*width, par_n, par_d); + *width = gst_util_uint64_scale_int (*width, par_n, par_d); } else { *width = gst_util_uint64_scale_int (*height, par_d, par_n); }