ffmdec: make sure the time base is valid
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 8 Mar 2015 22:12:59 +0000 (23:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Mar 2015 16:06:10 +0000 (17:06 +0100)
commit645a299132bad3a6f3cb95f01c18cb5e957cf934
treeac401db72f19b405d6f4ca4c8c28cd9b5ae1bbb3
parentb8c5cd5b8d6e0c2f8a66217448b5dd247d1eba89
ffmdec: make sure the time base is valid

A negative time base can trigger assertions.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4c91d81be23ffacfa3897b2bcfa77445bb0c2f89)

Conflicts:

libavformat/ffmdec.c
(cherry picked from commit 9678ceb6976ca8194848b24535785a298521211f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmdec.c