h264parse: don't invalidate the last PPS when parsing a new SPS
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 28 Jan 2021 11:28:03 +0000 (12:28 +0100)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Wed, 17 Feb 2021 16:22:18 +0000 (16:22 +0000)
commit5a03862fca0f3c84503796062a092f8712c7cfa0
treed2ab98e00ad22b3447ef58471576e6bb4ab0f545
parent66bfd0e8aef6c08167c5742e096e5cc96246d984
h264parse: don't invalidate the last PPS when parsing a new SPS

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.

Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/571

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2019>
gst/videoparsers/gsth264parse.c
tests/check/elements/h264parse.c