qtdemux: cleanups and make duration more accurate
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Jan 2010 15:33:30 +0000 (16:33 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Jan 2010 14:51:50 +0000 (15:51 +0100)
commit91a5e5138fad2a496a6388f165c3b213a913edf5
tree3333ef43e725a798d95eea7cc7bfac7041f6c81d
parent22eb18f828e9c6208fadd67b193261780b019255
qtdemux: cleanups and make duration more accurate

Make the QtDemuxSample struct smaller by keeping the duration and the pts_offset
as their 32 bit values.
Make some macros to calculate PTS, DTS and duration of a sample.
Deref the sample index less often by keeping a ref to the sample we're dealing
with.
gst/qtdemux/qtdemux.c