Avoid divide-by-zero in vp8 initialization
authorJohann <johannkoenig@google.com>
Tue, 4 Nov 2014 18:46:24 +0000 (10:46 -0800)
committerJohann <johannkoenig@google.com>
Tue, 4 Nov 2014 20:52:10 +0000 (12:52 -0800)
commitb4957234af20f07c4fc15873ec0590aba17e7cf5
treebd4746a88ccf3be76e479f4b4c95291a9953f53e
parent1e753387c837fa1be82b5fcc9b2879e5e8decd09
Avoid divide-by-zero in vp8 initialization

Check that the numerator is not zero. If it is, guess 30fps.

Fixes a clang IOC error in the quantize test. It's very unlikely for
this to occur in the wild because the setup in the quantize test is very
nonstandard.

Change-Id: Icdab7b81d4e168d3423e14db20787f960052e0c3
vp8/encoder/onyx_if.c