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:
parent
6b63053be1
commit
cac4b032c3
@ -81,6 +81,9 @@ enum
|
|||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#undef GST_VIDEO_SIZE_RANGE
|
||||||
|
#define GST_VIDEO_SIZE_RANGE "(int) [ 1, 32767]"
|
||||||
|
|
||||||
static GstStaticCaps gst_video_scale_format_caps[] = {
|
static GstStaticCaps gst_video_scale_format_caps[] = {
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx),
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx),
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB),
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user