shithub: libvpx

Download patch

ref: 4071d167d6400bebd98edd497eb51c90bf85b5f6
parent: 0270a790d763fc66121a7d9c69030516994f2ca8
parent: 6b76e3fb69c9cc8afc40c4755532ee0d49143086
author: John Koleszar <jkoleszar@google.com>
date: Wed May 26 02:27:34 EDT 2010

Merge "examples: use I420 input for encoders"

--- a/examples/encoder_tmpl.c
+++ b/examples/encoder_tmpl.c
@@ -127,7 +127,7 @@
     height = strtol(argv[2], NULL, 0);
     if(width < 16 || width%2 || height <16 || height%2)
         die("Invalid resolution: %ldx%ld", width, height);
-    if(!vpx_img_alloc(&raw, VPX_IMG_FMT_YV12, width, height, 1))
+    if(!vpx_img_alloc(&raw, VPX_IMG_FMT_I420, width, height, 1))
         die("Faile to allocate image", width, height);
     if(!(outfile = fopen(argv[4], "wb")))
         die("Failed to open %s for writing", argv[4]);