mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
codecparsers: h265parser: Fix the index incrementation error in append_profile().
The current "*idx++" operation just refers the pointer and increment the pointer itself, not the content of the pointer. This causes that the count of the profiles is always 0. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1517>
This commit is contained in:
parent
644969e0ba
commit
9eb0f8501f
1 changed files with 2 additions and 1 deletions
|
@ -3643,7 +3643,8 @@ append_profile (GstH265Profile profiles[GST_H265_PROFILE_MAX], guint * idx,
|
||||||
{
|
{
|
||||||
if (profile == GST_H265_PROFILE_INVALID)
|
if (profile == GST_H265_PROFILE_INVALID)
|
||||||
return;
|
return;
|
||||||
profiles[*idx++] = profile;
|
profiles[*idx] = profile;
|
||||||
|
(*idx)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
|
|
Loading…
Reference in a new issue