OSDN Git Service

Probably a good idea to set the new par width after calculating it.
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 5 Jun 2009 22:07:01 +0000 (22:07 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 5 Jun 2009 22:07:01 +0000 (22:07 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2491 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb.c

index f7e3c9d..c65cc58 100644 (file)
@@ -803,7 +803,9 @@ void hb_set_anamorphic_size( hb_job_t * job,
                    which could easily be stored in a different resolution. */
                    
                 int output_display_width = width * (double)pixel_aspect_width /
-                                           (double)pixel_aspect_height ;
+                    (double)pixel_aspect_height;
+                pixel_aspect_width = output_display_width;
+                pixel_aspect_height = width;
             }
             
             /* Back to caller */