videoscale: Restrict width/height to 2^15 - 1

Otherwise integer overflows will happen, resulting in segmentation faults.

Fixes bug #590243.
This commit is contained in:
Sebastian Dröge 2009-07-30 12:37:07 +02:00
parent 6b63053be1
commit cac4b032c3

View file

@ -81,6 +81,9 @@ enum
/* FILL ME */
};
#undef GST_VIDEO_SIZE_RANGE
#define GST_VIDEO_SIZE_RANGE "(int) [ 1, 32767]"
static GstStaticCaps gst_video_scale_format_caps[] = {
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx),
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB),