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

This commit is contained in:
John Koleszar 2010-06-14 05:54:47 -07:00 committed by Code Review
commit 6f47a34613

View File

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