[vlc-devel] [PATCH 2/2] vout: use vlc_rational_t for crop ratio

remi at remlab.net remi at remlab.net
Tue Feb 9 16:13:49 UTC 2021


From: RĂ©mi Denis-Courmont <remi at remlab.net>

---
 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;
-- 
2.30.0



More information about the vlc-devel mailing list