mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
image: don't use (void *) pointer arithmetic.
This commit is contained in:
parent
79b45a43d1
commit
c6d64527b5
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,7 @@ _gst_vaapi_image_map(GstVaapiImage *image, GstVaapiImageRaw *raw_image)
|
|||
raw_image->height = va_image->height;
|
||||
raw_image->num_planes = va_image->num_planes;
|
||||
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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue