qtmux: Make the default timescale 1/1800 second
authorJan Schmidt <jan@centricular.com>
Fri, 15 Aug 2014 00:09:56 +0000 (10:09 +1000)
committerJan Schmidt <jan@centricular.com>
Fri, 15 Aug 2014 03:03:52 +0000 (13:03 +1000)
The old default timescale of 1 millisecond produces irrational
numbers for a lot of framerate/audio-packet-duration multiples.
1/1800 is a nicer number, as it tends to produce better fractions
and therefore slightly higher accuracy overall

gst/isomp4/gstqtmux.c

index 11ab253..b5bb6a9 100644 (file)
@@ -185,7 +185,7 @@ enum
 /* some spare for header size as well */
 #define MDAT_LARGE_FILE_LIMIT           ((guint64) 1024 * 1024 * 1024 * 2)
 
-#define DEFAULT_MOVIE_TIMESCALE         1000
+#define DEFAULT_MOVIE_TIMESCALE         1800
 #define DEFAULT_TRAK_TIMESCALE          0
 #define DEFAULT_DO_CTTS                 TRUE
 #define DEFAULT_FAST_START              FALSE