Using an external Ts to calculate and set the PTS is error prone. E.g. the user might set the PTS of a frame before calculating the PTS potentially resulting in the same PTS foe the first two frames.
To reduce the potential for mistakes for simple applications I suggest implementing convenience methods like calc_pts_from_instant directly on frames.
Using an external
Ts
to calculate and set the PTS is error prone. E.g. the user might set the PTS of a frame before calculating the PTS potentially resulting in the same PTS foe the first two frames.To reduce the potential for mistakes for simple applications I suggest implementing convenience methods like
calc_pts_from_instant
directly on frames.