Commit da25c560 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠 Committed by Sebastian Dröge

xvimagesink: only error out if the allocated memory is too small

https://bugzilla.gnome.org/show_bug.cgi?id=767712
parent 90eda865
......@@ -443,7 +443,7 @@ gst_xvimage_allocator_alloc (GstXvImageAllocator * allocator, gint im_format,
expected_size = padded_height * GST_ROUND_UP_4 (padded_width *
GST_VIDEO_FORMAT_INFO_PSTRIDE (info->finfo, 0));
}
if (expected_size != 0 && mem->xvimage->data_size != expected_size)
if (expected_size != 0 && mem->xvimage->data_size < expected_size)
goto unexpected_size;
/* Be verbose about our XvImage stride */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment