Commit 97e3d780 authored by Jean-Paul Saman's avatar Jean-Paul Saman

xvba_buffer: assert if sizes do not match

parent 2a4872c3
......@@ -829,6 +829,7 @@ xvba_CreateBuffer(
if (!obj_buffer)
return VA_STATUS_ERROR_ALLOCATION_FAILED;
ASSERT(size == obj->buffer_size);
if (data)
memcpy(obj_buffer->buffer_data, data, obj_buffer->buffer_size);
......
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