Reset output frames counter for second pass
authorAdrian Grange <agrange@google.com>
Fri, 27 Apr 2012 18:06:14 +0000 (11:06 -0700)
committerAdrian Grange <agrange@google.com>
Fri, 27 Apr 2012 18:17:46 +0000 (11:17 -0700)
The frame counter was not being reset at the start of
the first pass.

Change-Id: I2ef7c6edf027e43f83f470c52cbcf95bf152e430

vpxenc.c

index d89c075..11d80de 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -2088,6 +2088,7 @@ static void setup_pass(struct stream_state  *stream,
 
     stream->cx_time = 0;
     stream->nbytes = 0;
+    stream->frames_out = 0;
 }