summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth T M <vineeth.tm@samsung.com>2015-02-09 11:29:46 +0530
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-04-20 09:42:14 +0100
commit3daa793494aa9ea41cd0f0ae5ed20275002e876c (patch)
tree3c9aee18667db36652bd51abd063a46d9abab3b1
parentac5e25937b23b55d0e13372fa408167e20cc5dd4 (diff)
downloadgstreamer-plugins-bad-3daa793494aa9ea41cd0f0ae5ed20275002e876c.tar.gz
fieldanalysis: exception when block width to 0
When block width property is set to 0, exception occurs. This happens due to divide by zero errors in calculations. block width property can never be 0. Hence adjusting the minimum value to 1. https://bugzilla.gnome.org/show_bug.cgi?id=744188
-rw-r--r--gst/fieldanalysis/gstfieldanalysis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/fieldanalysis/gstfieldanalysis.c b/gst/fieldanalysis/gstfieldanalysis.c
index 8631d7496..b7ffd87c7 100644
--- a/gst/fieldanalysis/gstfieldanalysis.c
+++ b/gst/fieldanalysis/gstfieldanalysis.c
@@ -259,7 +259,7 @@ gst_field_analysis_class_init (GstFieldAnalysisClass * klass)
DEFAULT_SPATIAL_THRESH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_BLOCK_WIDTH,
g_param_spec_uint64 ("block-width", "Block width",
- "Block width for windowed comb detection", 0, G_MAXUINT64,
+ "Block width for windowed comb detection", 1, G_MAXUINT64,
DEFAULT_BLOCK_WIDTH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_BLOCK_HEIGHT,
g_param_spec_uint64 ("block-height", "Block height",