mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
h264parse: Don't discard first AU delimiter
Don't throw away AU delimiter(s) that precede the SPS/PPS. Should fix MPEG-TS playback on iOS/Quicktime when muxing streams that already have AU delimiters. See https://bugzilla.gnome.org/show_bug.cgi?id=736213 for getting h264parse to insert AU delimiters when they don't already exist.
This commit is contained in:
parent
2992ff98e5
commit
48a1f27923
1 changed files with 6 additions and 0 deletions
|
@ -856,6 +856,12 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu)
|
|||
h264parse->idr_pos);
|
||||
}
|
||||
break;
|
||||
case GST_H264_NAL_AU_DELIMITER:
|
||||
/* Just accumulate AU Delimiter, whether it's before SPS or not */
|
||||
pres = gst_h264_parser_parse_nal (nalparser, nalu);
|
||||
if (pres != GST_H264_PARSER_OK)
|
||||
return FALSE;
|
||||
break;
|
||||
default:
|
||||
/* drop anything before the initial SPS */
|
||||
if (!GST_H264_PARSE_STATE_VALID (h264parse, GST_H264_PARSE_STATE_GOT_SPS))
|
||||
|
|
Loading…
Reference in a new issue