]> granicus.if.org Git - libvpx/commitdiff
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 d89c0753a0bdbe4d659ce83f69966f87c84309f9..11d80de38ca3bfa11e33f9c1056af10118343ca6 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;
 }