mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
h264parse: 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 Closes #503
This commit is contained in:
parent
475628c20e
commit
c22b52ef4d
1 changed files with 2 additions and 0 deletions
|
@ -849,6 +849,8 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu)
|
||||||
/* arranged for a fallback sps.id, so use that one and only warn */
|
/* arranged for a fallback sps.id, so use that one and only warn */
|
||||||
if (pres != GST_H264_PARSER_OK) {
|
if (pres != GST_H264_PARSER_OK) {
|
||||||
GST_WARNING_OBJECT (h264parse, "failed to parse SPS:");
|
GST_WARNING_OBJECT (h264parse, "failed to parse SPS:");
|
||||||
|
h264parse->state |= GST_H264_PARSE_STATE_GOT_SPS;
|
||||||
|
h264parse->header |= TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue