summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-08-11 14:49:33 +0000
committerjstebbins <[email protected]>2014-08-11 14:49:33 +0000
commit8bfcc38a3272405bb148da929393405c16cf3db8 (patch)
treec25ad87c7a5dad8a6279fe0f29e22d111db17f97 /gtk/src
parentac809f509022e665d28af3003245d818c76f2098 (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.c2
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");