projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ded7a4
)
asfdemux: Set the stream-format field of H264 streams
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 16 Apr 2018 17:13:05 +0000
(20:13 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 16 Apr 2018 17:14:16 +0000
(20:14 +0300)
If we have codec_data it will be AVC, otherwise assume byte-stream.
gst/asfdemux/gstasfdemux.c
patch
|
blob
|
history
diff --git
a/gst/asfdemux/gstasfdemux.c
b/gst/asfdemux/gstasfdemux.c
index
520df67
..
80c4fa7
100644
(file)
--- 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);
}
}