]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix a picture settings storage dimensions problem
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 1 Jul 2009 00:18:19 +0000 (00:18 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 1 Jul 2009 00:18:19 +0000 (00:18 +0000)
Transitioning from specific dimensions to max dimensions was broken

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

gtk/src/hb-backend.c

index 526a9cf8d0570298efaf1a8acd6727e8741fcd46..eca539e560c46fb635399ace3a5fd046ce13325f 100644 (file)
@@ -3144,10 +3144,8 @@ ghb_set_scale(signal_user_data_t *ud, gint mode)
                        width = ((double)height * crop_width / crop_height) + 0.5;
                job->width = width;
                job->height = height;
-               if (max_width) 
-                       job->maxWidth = max_width;
-               if (max_height) 
-                       job->maxHeight = max_height;
+               job->maxWidth = max_width;
+               job->maxHeight = max_height;
                job->crop[0] = crop[0]; job->crop[1] = crop[1];
                job->crop[2] = crop[2]; job->crop[3] = crop[3];
                if (job->anamorphic.mode == 3 && !keep_aspect)