diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c index 0c1b0ed5e4..d351a397e1 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c @@ -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* */