decoder: mpeg2: respect any input PTS provided for a frame.
authorJan Schmidt <jan@centricular.com>
Fri, 4 Jul 2014 05:13:32 +0000 (15:13 +1000)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 4 Jul 2014 05:38:50 +0000 (07:38 +0200)
commit22dc8c42514e1d5d3f89d064e52b252f01fce54b
tree6c70c1bf255604cfa9054f58c8e6e99ef010fe8f
parent99bf1b1f9874f09a5c93f125f8f9a28faa2025a3
decoder: mpeg2: respect any input PTS provided for a frame.

The timestamp generator in gstvaapidecoder_mpeg2.c always interpolated
frame timestamps within a GOP, even when it's been fed input PTS for
every frame.

That leads to incorrect output timestamps in some situations - for example
live playback where input timestamps have been scaled based on arrival time
from the network and don't exactly match the framerate.

https://bugzilla.gnome.org/show_bug.cgi?id=732719
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c