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:
He Junyan 2022-01-13 10:11:52 +08:00 committed by GStreamer Marge Bot
parent 644969e0ba
commit 9eb0f8501f

View file

@ -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* */