summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2017-02-01 14:44:32 +1100
committerSebastian Dröge <sebastian@centricular.com>2017-02-02 12:39:45 +0200
commita885c42e3f13c9b02c5263ab6eea6f2ef2e02892 (patch)
treed20f581a7509b180b7a605eddb631e58e3690c34
parent96f9b83eed617886fefa0ec5682e072f65eafc8b (diff)
downloadgstreamer-plugins-bad-a885c42e3f13c9b02c5263ab6eea6f2ef2e02892.tar.gz
mpegdemux: Add stream-format to the H.264 caps.
H.264 in MPEG-PS is always byte-stream
-rw-r--r--gst/mpegdemux/gstmpegdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 755e8e6c1..c2d70d089 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: