oggstream: vorbis has a preroll of 2
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 18 Aug 2011 08:30:46 +0000 (09:30 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Aug 2011 09:17:28 +0000 (11:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=656775

ext/ogg/gstoggstream.c

index 1b859a2b27ccc5db1dc8a8b354b72d8c71ace445..a0b4e687c626a6f7dba19448f6fb264173732dad 100644 (file)
@@ -717,6 +717,7 @@ setup_vorbis_mapper (GstOggStream * pad, ogg_packet * packet)
   pad->granulerate_n = GST_READ_UINT32_LE (data);
   pad->granulerate_d = 1;
   pad->granuleshift = 0;
+  pad->preroll = 2;
   pad->last_size = 0;
   GST_LOG ("sample rate: %d", pad->granulerate_n);