ref: 7aef9790cf5acb01904708d95c32a735d473f980
parent: a32f3415392bda8bfc16c0a6827c42e1347a585d
parent: e5e2932cb3e7610862e7c3dc0ad3bf0f0ccb97f6
author: James Zern <[email protected]>
date: Thu Jun 2 23:15:00 EDT 2016
Merge "ivfdec: tolerate invalid framerates"
--- a/ivfdec.c
+++ b/ivfdec.c
@@ -23,7 +23,7 @@
// we can guess the framerate using only the timebase in this
// case. Other files would require reading ahead to guess the
// timebase, like we do for webm.
- if (*num < 1000) {
+ if (*den > 0 && *num > 0 && *num < 1000) {
// Correct for the factor of 2 applied to the timebase in the encoder.
if (*num & 1)
*den *= 2;