mpeg2: fix GOP timestamps when incorrect data is received.
authorWind Yuan <feng.yuan@intel.com>
Wed, 14 Mar 2012 00:33:41 +0000 (20:33 -0400)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 22 Mar 2012 12:45:47 +0000 (13:45 +0100)
commitbaa80d97530abc92e451c90da8bbd2e366ec338b
tree76fdabc07ef61f8ac0076b010e2a758fb4ff3b79
parentfc3edde05cb18b8e0c5c8bbe2deabf93be457814
mpeg2: fix GOP timestamps when incorrect data is received.

Some streams have incorrect GOP timestamps, or nothing set at all.
i.e. GOP time is 00:00:00 for all GOPs. Try to recover in this case
from demuxer timestamps, which are monotonic.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c