h265parse: don't invalidate the last PPS when parsing a new SPS
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 5 May 2021 07:04:38 +0000 (12:34 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 5 May 2021 10:02:28 +0000 (10:02 +0000)
commit4c4f03120747f3ef37dc82b79ad669eeec7d7341
tree4b4f71feeec0ab9633f195723a325e1f823b2826
parentad3d7d34cccefb6551b5ed6545e49cc92fc76291
h265parse: don't invalidate the last PPS when parsing a new SPS

This is a port of https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2019
to h265parse.

When a SPS is received then any previous PPS remains valid. So don't clear
the PPS flag from the parser state.

This is important because there are encoders that don't generated a PPS after
every SPS.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2217>
gst/videoparsers/gsth265parse.c