panicbit / rust-av

Other
14 stars 1 forks source link

Make PTS calculation more convenient #24

Open panicbit opened 7 years ago

panicbit commented 7 years ago

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.