[vlc-commits] display: don't force a 0 SAR anymore on the display preferred format

Steve Lhomme git at videolan.org
Fri Sep 11 13:35:21 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep  2 09:50:52 2020 +0200| [bedc4562f22d7e34eba125a59b85c2122f6d2004] | committer: Steve Lhomme

display: don't force a 0 SAR anymore on the display preferred format

In some cases the display modules may rotate the video format, resulting in
inverted and non matching SAR. But in that case the width/height will also be
rotated and thus not matching either.

Also the comparision between the input and preferred format of the display
module explicitly zero the SAR for comparison (although it may hide some needed
conversion).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bedc4562f22d7e34eba125a59b85c2122f6d2004
---

 src/video_output/display.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 0518e7a590..b76de8ed26 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -298,8 +298,6 @@ static int vout_display_start(void *func, bool forced, va_list ap)
 
     /* Picture buffer does not have the concept of aspect ratio */
     video_format_Copy(&osys->display_fmt, vd->source);
-    osys->display_fmt.i_sar_num = 0;
-    osys->display_fmt.i_sar_den = 0;
     vd->obj.force = forced; /* TODO: pass to activate() instead? */
 
     int ret = activate(vd, cfg, &osys->display_fmt, context);



More information about the vlc-commits mailing list