mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
vaapi: libs: Use unsized arrays as parameters.
Instead of defining a sized array for function signature, use it unsized (a pointer alias, basically). In this way clang warning is silenced: warning: ‘fill_profiles’ accessing 64 bytes in a region of size 12 [-Wstringop-overflow=] Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1357>
This commit is contained in:
parent
2d5a10f6a6
commit
92f8b54657
2 changed files with 3 additions and 3 deletions
|
@ -1435,7 +1435,7 @@ get_sps (GstVaapiDecoderH264 * decoder)
|
|||
}
|
||||
|
||||
static void
|
||||
fill_profiles (GstVaapiProfile profiles[16], guint * n_profiles_ptr,
|
||||
fill_profiles (GstVaapiProfile profiles[], guint * n_profiles_ptr,
|
||||
GstVaapiProfile profile)
|
||||
{
|
||||
guint n_profiles = *n_profiles_ptr;
|
||||
|
@ -1453,7 +1453,7 @@ fill_profiles (GstVaapiProfile profiles[16], guint * n_profiles_ptr,
|
|||
|
||||
/* Fills in compatible profiles for MVC decoding */
|
||||
static void
|
||||
fill_profiles_mvc (GstVaapiDecoderH264 * decoder, GstVaapiProfile profiles[16],
|
||||
fill_profiles_mvc (GstVaapiDecoderH264 * decoder, GstVaapiProfile profiles[],
|
||||
guint * n_profiles_ptr, guint dpb_size)
|
||||
{
|
||||
const gchar *const vendor_string =
|
||||
|
|
|
@ -1073,7 +1073,7 @@ gst_vaapi_decoder_h265_reset (GstVaapiDecoder * base_decoder)
|
|||
}
|
||||
|
||||
static void
|
||||
fill_profiles (GstVaapiProfile profiles[16], guint * n_profiles_ptr,
|
||||
fill_profiles (GstVaapiProfile profiles[], guint * n_profiles_ptr,
|
||||
GstVaapiProfile profile)
|
||||
{
|
||||
guint n_profiles = *n_profiles_ptr;
|
||||
|
|
Loading…
Reference in a new issue