summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux/qtdemux_dump.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-21 14:21:08 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-09-23 16:54:42 +0100
commitc8c9b0f35d2330617fe71b89a1828dd84c6a8c91 (patch)
treef78ddae2a979775946db6c38621b623a18efef3a /gst/qtdemux/qtdemux_dump.c
parent4be46b15863f8c5cba3be89df1eada9b7db82752 (diff)
qtdemux: move stco, stts, stss and stps atom parsing over to GstByteReader
Make sure we don't read beyond the atom boundary. Note that the code behaves slightly differently in the corner case where there is not enough atom data for the specified number of samples (n_samples_time) in the atom, but still enough data to fill the pre-allocated index of n_samples entries: before we would just stop parsing the stts data and continue, whereas now we will likely error out. This should not be a problem in practice though. We could maintain the old behaviour by doing reads with a size check inside the loop if needed.
Diffstat (limited to 'gst/qtdemux/qtdemux_dump.c')
0 files changed, 0 insertions, 0 deletions