matroskademux: set framerate 0/1 when duration is not known

https://bugzilla.gnome.org/show_bug.cgi?id=740130
This commit is contained in:
Nicola Murino 2014-11-18 16:52:40 +01:00 committed by Sebastian Dröge
parent f4ca3c255a
commit c466ff4748

View file

@ -5076,10 +5076,8 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION, gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
fps_n, fps_d, NULL); fps_n, fps_d, NULL);
} else { } else {
/* sort of a hack to get most codecs to support,
* even if the default_duration is missing */
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION, gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
25, 1, NULL); 0, 1, NULL);
} }
if (videocontext->parent.flags & GST_MATROSKA_VIDEOTRACK_INTERLACED) if (videocontext->parent.flags & GST_MATROSKA_VIDEOTRACK_INTERLACED)