qtdemux: Round timestamp up when scaling to mov format
authorRobert Swain <robert.swain@collabora.co.uk>
Tue, 25 May 2010 19:14:05 +0000 (21:14 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 25 May 2010 23:08:16 +0000 (00:08 +0100)
commit50273537dcc5a557fee3b24c9b0baf9abb4e5900
treeef8b6301f9ac2b5d805b3e19dc6cef87c791989c
parent6a9983cd20c48b96396229b3f94d0254a05ddf48
qtdemux: Round timestamp up when scaling to mov format

Fix timestamp rounding to allow the correct index to be located.

The issue was that scaling from GStreamer time format to mov time format was
rounding down causing the timestamp of the newsegment event received after a
flushing keyframe seek to find the sample index before the one it should
causing further backward seeking to the keyframe prior until no rounding error
occurred.

Rounding up when scaling to mov format has the desired effect, and it is
not clear whether just the _round () variant would be sufficient.

Fixes bug #619105
gst/qtdemux/qtdemux.c