mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
asfdemux: Set the stream-format field of H264 streams
If we have codec_data it will be AVC, otherwise assume byte-stream.
This commit is contained in:
parent
6ded7a45ba
commit
0c9a8e9e3b
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue