diff options
author | Jan Schmidt <jan@centricular.com> | 2017-02-01 14:44:32 +1100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2017-02-01 14:46:15 +1100 |
commit | df612f7eb15cc9c8d199ea8c00d42e9f38bb7549 (patch) | |
tree | 1c998944fafbdd219f7379b2827ee05afa65b8bc | |
parent | ae98d3537be611de771d94cc48da218d9a8cb540 (diff) |
mpegdemux: Add stream-format to the H.264 caps.
H.264 in MPEG-PS is always byte-stream
-rw-r--r-- | gst/mpegdemux/gstmpegdemux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index 990890892..c6226544d 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: |