oggdemux: increase EOS granpos detection chunk size
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 26 Aug 2016 10:27:17 +0000 (11:27 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 5 Sep 2016 10:41:43 +0000 (11:41 +0100)
This can be too small on some files to find a valid granule.

https://bugzilla.gnome.org/show_bug.cgi?id=770314

ext/ogg/gstoggdemux.c

index d653df8..6f03edd 100644 (file)
@@ -48,7 +48,7 @@
 #define CHUNKSIZE (8500)        /* this is out of vorbisfile */
 
 /* we hope we get a granpos within this many bytes off the end */
-#define DURATION_CHUNK_OFFSET (64*1024)
+#define DURATION_CHUNK_OFFSET (128*1024)
 
 /* An Ogg page can not be larger than 255 segments of 255 bytes, plus
    26 bytes of header */