diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-04-16 20:13:05 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-04-17 18:00:28 +0300 |
commit | cf42d1e0a18b0f4f040cf6188271333e35bf273e (patch) | |
tree | eaccd917003e8f45473b424a9a91c7995b52fa26 | |
parent | 3d6b928e1754abead08255918f134c16f5a70d30 (diff) |
asfdemux: Set the stream-format field of H264 streams
If we have codec_data it will be AVC, otherwise assume byte-stream.
-rw-r--r-- | gst/asfdemux/gstasfdemux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 520df678..80c4fa75 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -2841,10 +2841,18 @@ gst_asf_demux_add_video_stream (GstASFDemux * demux, streamheader = gst_buffer_ref (buf); gst_asf_demux_add_stream_headers_to_caps (demux, buf, caps_s); gst_structure_remove_field (caps_s, "codec_data"); + gst_structure_set (caps_s, "stream-format", G_TYPE_STRING, + "byte-stream", NULL); + } else { + gst_structure_set (caps_s, "stream-format", G_TYPE_STRING, "avc", + NULL); } gst_buffer_unmap (buf, &mapinfo); } + } else { + gst_structure_set (caps_s, "stream-format", G_TYPE_STRING, "byte-stream", + NULL); } } |