Fix output cropping in vp9_get_preview_raw_frame.

Handle the non-420 case and set uv_width.

This is needed to get the correct colorspace information out of
vp9e_get_preview().

Change-Id: I62ce118cd7082708d812deb0843c1be87582e0fe
This commit is contained in:
Alex Converse
2014-01-17 14:01:53 -08:00
parent 36ddfa9d00
commit 9c19953763

View File

@@ -3689,7 +3689,8 @@ int vp9_get_preview_raw_frame(VP9_PTR comp, YV12_BUFFER_CONFIG *dest,
*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;