diff options
author | jstebbins <[email protected]> | 2014-08-11 14:49:33 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-08-11 14:49:33 +0000 |
commit | 8bfcc38a3272405bb148da929393405c16cf3db8 (patch) | |
tree | c25ad87c7a5dad8a6279fe0f29e22d111db17f97 /gtk/src | |
parent | ac809f509022e665d28af3003245d818c76f2098 (diff) |
LinGui: protect against possible divide by 0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6287 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/hb-backend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index e6302cdda..8b234c7c0 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3519,6 +3519,8 @@ ghb_set_scale_settings(GValue *settings, gint mode) // First configure widgets mod = ghb_settings_combo_int(settings, "PictureModulus"); + if (mod <= 0) + mod = 16; keep_aspect = ghb_settings_get_boolean(settings, "PictureKeepRatio"); autocrop = ghb_settings_get_boolean(settings, "PictureAutoCrop"); autoscale = ghb_settings_get_boolean(settings, "autoscale"); |