Commit 37c720ec authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜 Committed by Tim-Philipp Müller
Browse files

h265parse: don't invalidate the last PPS when parsing a new SPS

This is a port of gstreamer/gst-plugins-bad!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: <gstreamer/gst-plugins-bad!2245>
parent 98ccc1f2
Pipeline #319418 passed with stages
in 31 minutes and 15 seconds
......@@ -756,7 +756,7 @@ gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * nalu)
break;
case GST_H265_NAL_SPS:
/* reset state, everything else is obsolete */
h265parse->state = 0;
h265parse->state &= GST_H265_PARSE_STATE_GOT_PPS;
pres = gst_h265_parser_parse_sps (nalparser, nalu, &sps, TRUE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment