vtenc: Use strlcpy instead of strncpy
Silences a compiler warning, and there's no cross-platform consideration as this plugin is apple-only Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9058>
This commit is contained in:
parent
a61ce97e48
commit
8eb5e3771b
@ -914,7 +914,7 @@ gst_vtenc_h264_parse_profile_level_key (GstVTEnc * self, const gchar * profile,
|
||||
profile = "main";
|
||||
if (level_arg == NULL)
|
||||
level_arg = "AutoLevel";
|
||||
strncpy (level, level_arg, sizeof (level));
|
||||
strlcpy (level, level_arg, sizeof (level));
|
||||
|
||||
if (!strcmp (profile, "constrained-baseline") ||
|
||||
!strcmp (profile, "baseline")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user