Commit 7bcb43cf authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

mpegtsdemux: Don't pretend doing NAL alignment

Per specification in 2.14.2 "For PES packetization, no specific data
alignment constraints apply". So we should probably not advertise NAL
alignment.

Note that more investigation is needed, it's possible that there is a
minimal parser to try and align and this is is just buggy.
parent 13837f3a
......@@ -215,10 +215,8 @@ struct _TSDemuxStream
"video/mpeg, " \
"mpegversion = (int) { 1, 2, 4 }, " \
"systemstream = (boolean) FALSE; " \
"video/x-h264,stream-format=(string)byte-stream," \
"alignment=(string)nal;" \
"video/x-h265,stream-format=(string)byte-stream," \
"alignment=(string)nal;" \
"video/x-h264,stream-format=(string)byte-stream;" \
"video/x-h265,stream-format=(string)byte-stream;" \
"video/x-dirac;" \
"video/x-cavs;" \
"video/x-wmv," \
......@@ -1398,8 +1396,7 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
case DRF_ID_HEVC:
is_video = TRUE;
caps = gst_caps_new_simple ("video/x-h265",
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "nal", NULL);
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
break;
case DRF_ID_KLVA:
sparse = TRUE;
......@@ -1415,8 +1412,7 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
if (program->program_number == 10510 && bstream->pid == 3401) {
is_video = TRUE;
caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "nal", NULL);
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
}
break;
case ST_HDV_AUX_V:
......@@ -1454,14 +1450,12 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
case GST_MPEGTS_STREAM_TYPE_VIDEO_H264:
is_video = TRUE;
caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "nal", NULL);
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
break;
case GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC:
is_video = TRUE;
caps = gst_caps_new_simple ("video/x-h265",
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "nal", NULL);
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
break;
case GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K:
is_video = TRUE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment