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

Change-Id: I2ef7c6edf027e43f83f470c52cbcf95bf152e430

vpxenc.c

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