asfdemux: Make sure we don't end up with negative timestamps.
authorEdward Hervey <bilboed@bilboed.com>
Fri, 19 Feb 2010 09:13:34 +0000 (10:13 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 19 Feb 2010 17:11:13 +0000 (18:11 +0100)
commit417e3e034649cb3cb00ea52e52d8ea8a9ef3147b
tree86be9a88c5b9d25e9f8fef949faf4900af93ede5
parentf144d1795d734f9b68ccddcc3b5d02096cac6a20
asfdemux: Make sure we don't end up with negative timestamps.

Some files have payload with timestamps smaller than the preroll duration.
Instead of blindly substracting the preroll value (and ending up with
insanely high timestamps on the outgoing buffers), we make sure we
never go below 0.

Fixes #610432
gst/asfdemux/asfpacket.c