shithub: libvpx

Download patch

ref: 6f47a34613bdbf16ed943ffe7bf1491c487c053d
parent: 1856f2213dae9fefaad0906011de31917853cffc
parent: df2c62d35782442b621388be8adba32a709afb1a
author: John Koleszar <jkoleszar@google.com>
date: Mon Jun 14 01:54:47 EDT 2010

Merge "ivfenc: fix two-pass support of raw files"

--- a/ivfenc.c
+++ b/ivfenc.c
@@ -950,7 +950,7 @@
             SHOW(kf_max_dist);
         }
 
-        if(pass == 0) {
+        if(pass == (one_pass_only ? one_pass_only - 1 : 0)) {
             if (file_type == FILE_TYPE_Y4M)
                 /*The Y4M reader does its own allocation.
                   Just initialize this here to avoid problems if we never read any