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
@ -3643,7 +3643,8 @@ append_profile (GstH265Profile profiles[GST_H265_PROFILE_MAX], guint * idx,
|
||||
{
|
||||
if (profile == GST_H265_PROFILE_INVALID)
|
||||
return;
|
||||
profiles[*idx++] = profile;
|
||||
profiles[*idx] = profile;
|
||||
(*idx)++;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
|
Loading…
x
Reference in New Issue
Block a user