]> granicus.if.org Git - handbrake/commitdiff
libhb: fix application of custom anamorphic settings
authorjstebbins <jstebbins.hb@gmail.com>
Sun, 14 Jun 2015 20:03:19 +0000 (20:03 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sun, 14 Jun 2015 20:03:19 +0000 (20:03 +0000)
Thanks to wickning1 in the forums
https://forum.handbrake.fr/viewtopic.php?f=4&t=32631&sid=e05d32d1f34bbcaab59d321f6c6222cf

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7296 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/preset.c

index 91f63b7ce33e1a8b2e96b86e20aba86e4c1e02a6..228c23fa835239985609a1a09c00174b75c361e4 100644 (file)
@@ -1585,13 +1585,13 @@ int hb_preset_apply_title(hb_handle_t *h, int title_index,
         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"));
         }
     }