[vlc-commits] vout: use vlc_rational_t for crop ratio

Rémi Denis-Courmont git at videolan.org
Fri Feb 12 18:18:47 UTC 2021


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb  9 18:13:35 2021 +0200| [21b2004eef4330fc018ca22dd05897f759766652] | committer: Rémi Denis-Courmont

vout: use vlc_rational_t for crop ratio

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

 src/video_output/vout_internal.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index 02e7b90612..fb24b51ee8 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -107,10 +107,7 @@ enum vout_crop_mode {
 struct vout_crop {
     enum vout_crop_mode mode;
     union {
-        struct {
-            unsigned num;
-            unsigned den;
-        } ratio;
+        vlc_rational_t ratio;
         struct {
             unsigned x;
             unsigned y;



More information about the vlc-commits mailing list