From df612f7eb15cc9c8d199ea8c00d42e9f38bb7549 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 1 Feb 2017 14:44:32 +1100 Subject: [PATCH] mpegdemux: Add stream-format to the H.264 caps. H.264 in MPEG-PS is always byte-stream --- gst/mpegdemux/gstmpegdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index 9908908921..c6226544d2 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -417,7 +417,8 @@ gst_ps_demux_create_stream (GstPsDemux * demux, gint id, gint stream_type) case ST_VIDEO_H264: template = klass->video_template; name = g_strdup_printf ("video_%02x", id); - caps = gst_caps_new_empty_simple ("video/x-h264"); + caps = gst_caps_new_simple ("video/x-h264", + "stream-format", G_TYPE_STRING, "byte-stream", NULL); threshold = VIDEO_SEGMENT_THRESHOLD; break; case ST_PS_AUDIO_AC3: