Merge "examples: use alignment > 1 w/vpx_img_alloc"

This commit is contained in:
John Koleszar
2012-05-18 20:39:50 -07:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ int main(int argc, char **argv) {
if (argc != 8+mode_to_num_layers[layering_mode]) if (argc != 8+mode_to_num_layers[layering_mode])
die ("Invalid number of arguments"); die ("Invalid number of arguments");
if (!vpx_img_alloc (&raw, VPX_IMG_FMT_I420, width, height, 1)) if (!vpx_img_alloc (&raw, VPX_IMG_FMT_I420, width, height, 32))
die ("Failed to allocate image", width, height); die ("Failed to allocate image", width, height);
printf("Using %s\n",vpx_codec_iface_name(interface)); printf("Using %s\n",vpx_codec_iface_name(interface));

View File

@@ -2437,7 +2437,7 @@ int main(int argc, const char **argv_)
vpx_img_alloc(&raw, vpx_img_alloc(&raw,
input.use_i420 ? VPX_IMG_FMT_I420 input.use_i420 ? VPX_IMG_FMT_I420
: VPX_IMG_FMT_YV12, : VPX_IMG_FMT_YV12,
input.w, input.h, 1); input.w, input.h, 32);
FOREACH_STREAM(init_rate_histogram(&stream->rate_hist, FOREACH_STREAM(init_rate_histogram(&stream->rate_hist,
&stream->config.cfg, &stream->config.cfg,