mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
h265parse: ignore VUI parse fail when parse SPS
VUI is an optional for SPS parse, some HEVC file has incorrect VUI parameters but still can be decoded
This commit is contained in:
parent
dbef8c43e8
commit
5498252750
1 changed files with 8 additions and 2 deletions
|
@ -612,10 +612,16 @@ gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * 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_H265_PARSER_OK) {
|
||||||
|
/* try to not parse VUI */
|
||||||
|
pres = gst_h265_parser_parse_sps (nalparser, nalu, &sps, FALSE);
|
||||||
if (pres != GST_H265_PARSER_OK) {
|
if (pres != GST_H265_PARSER_OK) {
|
||||||
GST_WARNING_OBJECT (h265parse, "failed to parse SPS:");
|
GST_WARNING_OBJECT (h265parse, "failed to parse SPS:");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
GST_WARNING_OBJECT (h265parse,
|
||||||
|
"failed to parse VUI of SPS, ignore VUI");
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (h265parse, "triggering src caps check");
|
GST_DEBUG_OBJECT (h265parse, "triggering src caps check");
|
||||||
h265parse->update_caps = TRUE;
|
h265parse->update_caps = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue