vpxenc: fix time and fps calculation in 2-pass encoding
authorYunqing Wang <yunqingwang@google.com>
Wed, 29 Feb 2012 13:24:53 +0000 (08:24 -0500)
committerYunqing Wang <yunqingwang@google.com>
Wed, 29 Feb 2012 20:44:56 +0000 (15:44 -0500)
commitaabae97e57378356cdc8c94af5e369f8363b9831
tree58058d80051b549c84c294f56c9c772dfbd82a54
parentce328b855f951e5a9fd0d9d92df09d65ea0d8be9
vpxenc: fix time and fps calculation in 2-pass encoding

When we do 2-pass encoding, elapsed time is accumulated through
whole 2-pass process, which gives incorrect time and fps results
for second pass. This change fixed that by resetting the time
accumulator for second pass.

Change-Id: Ie6cbf0d0e66e6874e7071305e253c6267529cf20
vpxenc.c