image: fix update from NV12 buffers.

This commit is contained in:
Gwenole Beauchesne 2012-01-04 11:29:11 +01:00
parent 12c85f69ff
commit ad390f3569

View file

@ -1129,7 +1129,7 @@ gst_vaapi_image_update_from_buffer(
src_image.stride[0] = GST_ROUND_UP_4(width); src_image.stride[0] = GST_ROUND_UP_4(width);
size2 += height * src_image.stride[0]; size2 += height * src_image.stride[0];
src_image.pixels[1] = data + size2; src_image.pixels[1] = data + size2;
src_image.stride[1] = src_image.stride[1]; src_image.stride[1] = src_image.stride[0];
size2 += height2 * src_image.stride[1]; size2 += height2 * src_image.stride[1];
break; break;
case GST_VAAPI_IMAGE_YV12: case GST_VAAPI_IMAGE_YV12: