From 2933302ce87af76ad060e95a110900c2ccfadeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 5 Feb 2007 11:44:52 +0000 Subject: [PATCH] gst/videoscale/gstvideoscale.c: A width and height of 1 makes us crash, so increase minimum size to 2x2 pixels until ... Original commit message from CVS: * gst/videoscale/gstvideoscale.c: A width and height of 1 makes us crash, so increase minimum size to 2x2 pixels until someone feels like fixing this (#404512). --- ChangeLog | 6 ++++++ gst/videoscale/gstvideoscale.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4c4d7edce0..35bdfa25b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-05 Tim-Philipp Müller + + * gst/videoscale/gstvideoscale.c: + A width and height of 1 makes us crash, so increase minimum size to + 2x2 pixels until someone feels like fixing this (#404512). + 2007-02-04 Tim-Philipp Müller * tests/check/pipelines/oggmux.c: (GST_START_TEST), (oggmux_suite): diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 03a35e9c3e..5d038cb6a7 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -89,6 +89,10 @@ enum /* FILL ME */ }; +/* can't handle width/height of 1 yet, since we divide a lot by (n-1) */ +#undef GST_VIDEO_SIZE_RANGE +#define GST_VIDEO_SIZE_RANGE "(int) [ 2, MAX ]" + static GstStaticCaps gst_video_scale_format_caps[] = { GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx), GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB),