Improved support for missing frames and invalid PTS (which result in gaps and duplicate frames). Also changed frame number to larger data type, and did some code clean-up and refactoring. Less crashes, and more video support!

This commit is contained in:
Jonathan Thomas
2015-08-24 01:05:48 -05:00
parent 45f31bbabf
commit bfa050409c
54 changed files with 566 additions and 321 deletions

View File

@@ -211,13 +211,13 @@ TEST(Keyframe_Check_Direction_and_Repeat_Fractions)
CHECK_EQUAL(kf.GetRepeatFraction(24).den, 4);
CHECK_EQUAL(kf.GetDelta(24), 0);
CHECK_EQUAL(kf.GetInt(390), 101);
CHECK_EQUAL(kf.GetLong(390), 101);
CHECK_EQUAL(kf.IsIncreasing(390), false);
CHECK_EQUAL(kf.GetRepeatFraction(390).num, 8);
CHECK_EQUAL(kf.GetRepeatFraction(390).den, 8);
CHECK_EQUAL(kf.GetDelta(390), 0);
CHECK_EQUAL(kf.GetInt(391), 100);
CHECK_EQUAL(kf.GetLong(391), 100);
CHECK_EQUAL(kf.IsIncreasing(391), true);
CHECK_EQUAL(kf.GetRepeatFraction(391).num, 1);
CHECK_EQUAL(kf.GetRepeatFraction(391).den, 12);