From db6a3e55c697553c9652dc54d9650d2097ad84f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 1 May 2010 14:12:28 +0200 Subject: [PATCH] matroskamux: Write interlaced flag if the input video content is interlaced Unfortunately Matroska has no way to specify TFF and friends... --- gst/matroska/matroska-mux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index ce189d7100..beda47134a 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -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;