videodecoder: finetune missing timestamp estimating
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 10 Oct 2012 13:04:07 +0000 (15:04 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 10 Oct 2012 13:04:10 +0000 (15:04 +0200)
commit706498cb6ea5ccd5395f715f81200e70d3193d4a
tree934dae2258074af1954760f46fc5ff4938750e4b
parent80e4f3e912e24b5181285f70afe36aa6b977a12f
videodecoder: finetune missing timestamp estimating

Monitor for reordered output timestamps, and then avoid oldest DTS
as PTS approach, and try for an oldest PTS as out PTS approach,
if at least all valid PTS available.

Avoids bogus estimating upon sparse available input PTS, and tries
to handle all-keyframe input, or input PTS which are actually DTS.
gst-libs/gst/video/gstvideodecoder.c
gst-libs/gst/video/gstvideoutils.h