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).
This commit is contained in:
Tim-Philipp Müller 2007-02-05 11:44:52 +00:00
parent e7a698506c
commit 2933302ce8
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-02-05 Tim-Philipp Müller <tim at centricular dot net>
* 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 <tim at centricular dot net>
* tests/check/pipelines/oggmux.c: (GST_START_TEST), (oggmux_suite):

View file

@ -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),