set_pts_interpolation


Description:

public void set_pts_interpolation (bool pts_interpolate)

By default, the base class will guess PTS timestamps using a simple interpolation (previous timestamp + duration), which is incorrect for data streams with reordering, where PTS can go backward.

Sub-classes implementing such formats should disable PTS interpolation.

This value is retained over PAUSED->READY state changes. Subclasses can call this function from their instance init function.

Parameters:

this

a Parse

pts_interpolate

true if parser should interpolate PTS timestamps