matroskademux: set framerate 0/1 when duration is not known
authorNicola Murino <nicola.murino@gmail.com>
Tue, 18 Nov 2014 15:52:40 +0000 (16:52 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 4 Dec 2014 17:20:37 +0000 (18:20 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=740130

gst/matroska/matroska-demux.c

index 615d742..03d5286 100644 (file)
@@ -5076,10 +5076,8 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
         gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
             fps_n, fps_d, NULL);
       } 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,
-            25, 1, NULL);
+            0, 1, NULL);
       }
 
       if (videocontext->parent.flags & GST_MATROSKA_VIDEOTRACK_INTERLACED)