[vlc-commits] mmal: vout: remove SAR fixing

Steve Lhomme git at videolan.org
Tue Aug 25 07:16:08 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 24 15:27:41 2020 +0200| [60b3b7629c344980687cb75c38b5ee036b20e0a0] | committer: Steve Lhomme

mmal: vout: remove SAR fixing

It's already done in the core.

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

 modules/hw/mmal/vout.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index ee48a6a552..5889d3d55e 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -516,16 +516,6 @@ static void
 place_dest(vout_display_sys_t * const sys,
            const vout_display_cfg_t * const cfg, const video_format_t * fmt)
 {
-    video_format_t tfmt;
-
-    // Fix SAR if unknown
-    if (fmt->i_sar_den == 0 || fmt->i_sar_num == 0) {
-        tfmt = *fmt;
-        tfmt.i_sar_den = 1;
-        tfmt.i_sar_num = 1;
-        fmt = &tfmt;
-    }
-
     // Ignore what VLC thinks might be going on with display size
     vout_display_cfg_t tcfg = *cfg;
     vout_display_place_t place;



More information about the vlc-commits mailing list