mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
h264parse: Wait until SPS/PPS before outputting any data
https://bugzilla.gnome.org/show_bug.cgi?id=646327
This commit is contained in:
parent
a36c9c1cc9
commit
ef0e051e7d
1 changed files with 9 additions and 1 deletions
|
@ -882,7 +882,15 @@ gst_h264_parse_handle_frame (GstBaseParse * parse,
|
|||
}
|
||||
}
|
||||
|
||||
if (nalu.type == GST_H264_NAL_SPS ||
|
||||
nalu.type == GST_H264_NAL_PPS ||
|
||||
(h264parse->have_sps && h264parse->have_pps)) {
|
||||
gst_h264_parse_process_nal (h264parse, &nalu);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (h264parse, "no SPS/PPS yet, nal Type: %d, Size: %u will be dropped", nalu.type, nalu.size);
|
||||
*skipsize = nalu.size;
|
||||
goto skip;
|
||||
}
|
||||
|
||||
if (nonext)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue