ffdec: use a better algorithm to detect DTS timestamps
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 7 Oct 2010 15:46:22 +0000 (17:46 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 7 Oct 2010 15:46:22 +0000 (17:46 +0200)
commit3f213c1b7306f5c5a895048affb31dbfb66a9e01
tree4e28c4f8fa446e405d4c89378b8e4a2ade8c7c1e
parenta0bc6f6e9d5e22cfa02fc2df1aed94b544bedebd
ffdec: use a better algorithm to detect DTS timestamps

Add function to reset the timestamp tracking.
Check for reordered timestamps on the input buffers and assume PTS input
timestamps when we see reordered timestamps.
Recover from an occasionally wrong input timestamp by also tracking the output
timestamps. When we detect a reordered output timestamp, assume DTS input
timestamps again.

Fixes #611500
ext/ffmpeg/gstffmpegdec.c