oggdemux: fix playback regression on streams with clipped data at start
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 16 Mar 2015 11:53:24 +0000 (11:53 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 16 Mar 2015 11:59:19 +0000 (11:59 +0000)
commit1ee2fccfdf85c73efd6a8aeafa8336ec5301c19d
treea50a7a90485c10dfc2f1377cce8009fa069a2db1
parente6cb5200366a5134ffefb79f0be578237ffe5c95
oggdemux: fix playback regression on streams with clipped data at start

The code that was calculating the start granule from packet durations
was interpreting a negative value as an error, but this is actually a
valid case, to indicate clipping of data at start.

https://bugzilla.gnome.org/show_bug.cgi?id=743900
ext/ogg/gstoggdemux.c