image: don't use (void *) pointer arithmetic.

This commit is contained in:
Gwenole Beauchesne 2012-09-07 11:57:59 +02:00
parent 79b45a43d1
commit c6d64527b5

View file

@ -783,7 +783,7 @@ _gst_vaapi_image_map(GstVaapiImage *image, GstVaapiImageRaw *raw_image)
raw_image->height = va_image->height; raw_image->height = va_image->height;
raw_image->num_planes = va_image->num_planes; raw_image->num_planes = va_image->num_planes;
for (i = 0; i < raw_image->num_planes; i++) { for (i = 0; i < raw_image->num_planes; i++) {
raw_image->pixels[i] = image_data + va_image->offsets[i]; raw_image->pixels[i] = (guchar *)image_data + va_image->offsets[i];
raw_image->stride[i] = va_image->pitches[i]; raw_image->stride[i] = va_image->pitches[i];
} }
} }