asfmux: adds support to vc-1 streams
This commit is contained in:
parent
0672f2d9b2
commit
7dd441f8f5
@ -2052,8 +2052,13 @@ 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;
|
||||||
|
|
||||||
|
/* in case we have a fourcc, we use it */
|
||||||
|
if (gst_structure_get_fourcc (structure, "format", &fourcc)) {
|
||||||
|
videopad->vidinfo.compression = fourcc;
|
||||||
|
} else {
|
||||||
|
gint version;
|
||||||
if (!gst_structure_get_int (structure, "wmvversion", &version))
|
if (!gst_structure_get_int (structure, "wmvversion", &version))
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
|
|
||||||
@ -2067,6 +2072,7 @@ gst_asf_mux_video_set_caps (GstPad * pad, GstCaps * caps)
|
|||||||
} else {
|
} else {
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user