mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
h265parse: update parser state and header flag when using fallback sps
When sps parsing fails we use a fallback sps from the caps, since we have got an sps we need to update parser state and header as in the case the sps was successfully parsed
This commit is contained in:
parent
c22b52ef4d
commit
59d8e56e95
1 changed files with 2 additions and 0 deletions
|
@ -727,6 +727,8 @@ gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * nalu)
|
|||
pres = gst_h265_parser_parse_sps (nalparser, nalu, &sps, FALSE);
|
||||
if (pres != GST_H265_PARSER_OK) {
|
||||
GST_WARNING_OBJECT (h265parse, "failed to parse SPS:");
|
||||
h265parse->state |= GST_H265_PARSE_STATE_GOT_SPS;
|
||||
h265parse->header |= TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
GST_WARNING_OBJECT (h265parse,
|
||||
|
|
Loading…
Reference in a new issue