mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
vc_image_helper: Avoid misaligned exception due to uninitialised pointer
The function parameters were extended without spotting another user with their own local prototype. Observed as misaligned exception when using video_render.
This commit is contained in:
@@ -258,6 +258,9 @@ int vc_image_get_mipmap_offset(VC_IMAGE_T *image, int miplvl);
|
|||||||
#define VC_IMAGE_MIPMAP_LINEAR_TILE 1
|
#define VC_IMAGE_MIPMAP_LINEAR_TILE 1
|
||||||
int vc_image_get_mipmap_type(VC_IMAGE_T const *image, int miplvl);
|
int vc_image_get_mipmap_type(VC_IMAGE_T const *image, int miplvl);
|
||||||
|
|
||||||
|
/* Ensure required alignment for format */
|
||||||
|
long fix_alignment(VC_IMAGE_TYPE_T type, long value, VC_IMAGE_INFO_T *info);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user