diff options
author | jstebbins <[email protected]> | 2014-06-24 22:06:06 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-06-24 22:06:06 +0000 |
commit | 5ed0a13987eedf9de544b92efac68138fe6993ab (patch) | |
tree | c50c4a4bf76c03b67ee44957a204019fe8f9470c /gtk/src/preview.c | |
parent | 4d3c5fb78b5af7ec54149cf82a2d1e9980e85179 (diff) |
LinGui: cleanup
use hb_set_anamorphic_size2 instead of hb_set_anamorphic_size
simplify preview generation code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6220 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r-- | gtk/src/preview.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 7f32d7543..7f688ce62 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -137,8 +137,11 @@ ghb_par_scale(signal_user_data_t *ud, gint *width, gint *height, gint par_n, gin gint64 num, den; ghb_screen_par(ud, &disp_par_n, &disp_par_d); - if (disp_par_n < 1) disp_par_n = 1; - if (disp_par_d < 1) disp_par_d = 1; + if (disp_par_n < 1 || disp_par_d < 1) + { + disp_par_n = 1; + disp_par_d = 1; + } num = par_n * disp_par_d; den = par_d * disp_par_n; |