mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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>
This commit is contained in:
parent
ad3d7d34cc
commit
4c4f031207
1 changed files with 1 additions and 1 deletions
|
@ -760,7 +760,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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue