Commit db6a3e55 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

matroskamux: Write interlaced flag if the input video content is interlaced

Unfortunately Matroska has no way to specify TFF and friends...
parent c1d24699
......@@ -661,6 +661,7 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps)
const GstBuffer *codec_buf = NULL;
gint width, height, pixel_width, pixel_height;
gint fps_d, fps_n;
gboolean interlaced = FALSE;
mux = GST_MATROSKA_MUX (GST_PAD_PARENT (pad));
......@@ -677,6 +678,10 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps)
mimetype = gst_structure_get_name (structure);
if (gst_structure_get_boolean (structure, "interlaced", &interlaced)
&& interlaced)
context->flags |= GST_MATROSKA_VIDEOTRACK_INTERLACED;
if (!strcmp (mimetype, "video/x-theora")) {
/* we'll extract the details later from the theora identification header */
goto skip_details;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment