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>
Sun, 25 Aug 2013 22:40:58 +0000 (19:40 -0300)
commitfc83cfda36d540e10f2d93c15768ed8a4d240342
tree178b5f9fe2fad4da77ef36dd010e6423f72caef0
parent986b29407cf361f352644d972aa818f35d63df59
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