Skip to content

Commit

Permalink
xvimagesink: only error out if the allocated memory is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
tp-m committed Jul 18, 2016
1 parent f00bbd2 commit 3273714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/xvimage/xvimageallocator.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 3273714

Please sign in to comment.