[vlc-commits] Revert "vout: assume aspect ratio is 1:1 if information is missing"

Jean-Baptiste Kempf git at videolan.org
Thu Feb 13 14:23:28 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 13 14:23:07 2014 +0100| [96fdf2c886402ac4f705b3d481fe10240b217543] | committer: Jean-Baptiste Kempf

Revert "vout: assume aspect ratio is 1:1 if information is missing"

This reverts commit bf5bc83e52ef5b4fd090b74b6d5bd9523b6dcbd7.

Close #10657

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

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

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 1f38c22..6dbac3d 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1182,9 +1182,8 @@ void vout_SetDisplayAspect(vout_display_t *vd, unsigned dar_num, unsigned dar_de
         sar_den = dar_den * osys->source.i_visible_width;
         vlc_ureduce(&sar_num, &sar_den, sar_num, sar_den, 0);
     } else {
-        /* Assume 1:1 SAR if the information is missing */
-        sar_num = 1;
-        sar_den = 1;
+        sar_num = 0;
+        sar_den = 0;
     }
 
     if (osys->sar.num != sar_num || osys->sar.den != sar_den) {



More information about the vlc-commits mailing list