[PATCH] Fix custom anamorphic settings for CLI

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
wickning1
Posts: 16
Joined: Wed Sep 15, 2010 2:43 am

[PATCH] Fix custom anamorphic settings for CLI

Post by wickning1 »

I frequently use --custom-anamorphic --pixel-aspect 1:1, because... reasons. I was getting wacky pixel aspect ratios like 1/27 when the source was 32/27. Figured out the denominator wasn't being set properly. Bug was introduced in [7158].

Code: Select all

Index: libhb/preset.c
===================================================================
--- libhb/preset.c      (revision 7295)
+++ libhb/preset.c      (working copy)
@@ -1585,13 +1585,13 @@
         if (dar_width > 0)
         {
             geo.geometry.par.num = dar_width;
-            geo.geometry.par.num = geo.geometry.width;
+            geo.geometry.par.den = geo.geometry.width;
         }
         else
         {
             geo.geometry.par.num =
                 hb_value_get_int(hb_dict_get(preset, "PicturePARWidth"));
-            geo.geometry.par.num =
+            geo.geometry.par.den =
                 hb_value_get_int(hb_dict_get(preset, "PicturePARHeight"));
         }
     }
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [PATCH] Fix custom anamorphic settings for CLI

Post by JohnAStebbins »

Post Reply