matroskadec: Improve TTA duration calculation
authorJames Almer <jamrial@gmail.com>
Sat, 17 Aug 2013 17:48:33 +0000 (14:48 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 18 Sep 2013 18:06:31 +0000 (15:06 -0300)
commit414d75b8bc06ac97cc78de318689b9a1c2074399
treef973c6b2de16c2e6c38965e2bfe2cc52d169269d
parentc52a25e03bb4fb445b474878d91a49dce92e3ae5
matroskadec: Improve TTA duration calculation

Calculate the duration as accurately as possible to improve decoding of samples
where the last frame is smaller than the rest.

Signed-off-by: James Almer <jamrial@gmail.com>
Approved-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit af248fa1174200acb537a6ab1198bb2fed38e884)
libavformat/matroskadec.c