shithub: libvpx

Download patch

ref: dd217d3df1ec75ab77cb7597b5504f920892e360
parent: 01882a9ee8ddeeb11113ddd1f2c38b22a730f7ac
parent: 7982914c37f21409f60c97112c939e6261981806
author: James Zern <jzern@google.com>
date: Tue Jun 7 18:39:49 EDT 2016

Merge "ivfdec: tolerate invalid framerates (2)"

--- 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 (*den > 0 && *num > 0 && *num < 1000) {
+  if (*den > 0 && *den < 1000000000 && *num > 0 && *num < 1000) {
     // Correct for the factor of 2 applied to the timebase in the encoder.
     if (*num & 1)
       *den *= 2;