qtmux: Be more clever with the default video track timescale
authorSebastian Dröge <sebastian@centricular.com>
Thu, 20 Oct 2016 17:07:19 +0000 (20:07 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 18:11:12 +0000 (20:11 +0200)
commit727fa1c7c378874f06eb2a998921be0a042c299f
tree13d48ac6d31b23511c887e2c859424d76c10770c
parent5a889647ba202d1fe8d902eef4251ca6ed1283bd
qtmux: Be more clever with the default video track timescale

Use the number of milliframes per second for integral and drop-frame
framerates, as suggested by the QT file format specification and other
places. We already did that for integral framerates before, but not for
drop-frame framerates. This now keeps precision better.

For all other framerates, check if it's close to a well-known framerate
and use that instead.

https://bugzilla.gnome.org/show_bug.cgi?id=769041
gst/isomp4/gstqtmux.c