shithub: libvpx

Download patch

ref: 7e157467dccec39b9863ab077a696189576283ce
parent: c5b633975cdea0b04f76dd5cce93d20391200002
parent: 9c19953763c139cfe0ee94fc94ac3c285e151d3c
author: Alex Converse <aconverse@google.com>
date: Fri Jan 17 10:49:06 EST 2014

Merge "Fix output cropping in vp9_get_preview_raw_frame."

--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -3689,7 +3689,8 @@
       *dest = *cpi->common.frame_to_show;
       dest->y_width = cpi->common.width;
       dest->y_height = cpi->common.height;
-      dest->uv_height = cpi->common.height / 2;
+      dest->uv_width = cpi->common.width >> cpi->common.subsampling_x;
+      dest->uv_height = cpi->common.height >> cpi->common.subsampling_y;
       ret = 0;
     } else {
       ret = -1;