mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
asfmux: adds support to vc-1 streams
This commit is contained in:
parent
0672f2d9b2
commit
7dd441f8f5
1 changed files with 18 additions and 12 deletions
|
@ -2052,20 +2052,26 @@ gst_asf_mux_video_set_caps (GstPad * pad, GstCaps * caps)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (caps_name, "video/x-wmv") == 0) {
|
if (strcmp (caps_name, "video/x-wmv") == 0) {
|
||||||
gint version;
|
guint32 fourcc;
|
||||||
|
|
||||||
if (!gst_structure_get_int (structure, "wmvversion", &version))
|
/* in case we have a fourcc, we use it */
|
||||||
goto refuse_caps;
|
if (gst_structure_get_fourcc (structure, "format", &fourcc)) {
|
||||||
|
videopad->vidinfo.compression = fourcc;
|
||||||
videopad->vidinfo.bit_cnt = 24;
|
|
||||||
if (version == 2) {
|
|
||||||
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '2');
|
|
||||||
} else if (version == 1) {
|
|
||||||
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '1');
|
|
||||||
} else if (version == 3) {
|
|
||||||
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '3');
|
|
||||||
} else {
|
} else {
|
||||||
goto refuse_caps;
|
gint version;
|
||||||
|
if (!gst_structure_get_int (structure, "wmvversion", &version))
|
||||||
|
goto refuse_caps;
|
||||||
|
|
||||||
|
videopad->vidinfo.bit_cnt = 24;
|
||||||
|
if (version == 2) {
|
||||||
|
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '2');
|
||||||
|
} else if (version == 1) {
|
||||||
|
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '1');
|
||||||
|
} else if (version == 3) {
|
||||||
|
videopad->vidinfo.compression = GST_MAKE_FOURCC ('W', 'M', 'V', '3');
|
||||||
|
} else {
|
||||||
|
goto refuse_caps;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
|
|
Loading…
Reference in a new issue