From: John Koleszar Date: Thu, 9 May 2013 17:40:59 +0000 (-0700) Subject: Make firstpass encode Y-only X-Git-Tag: v1.3.0~1106^2~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=236ec08cd052e01e1bccb13007546944c5464c90;p=libvpx Make firstpass encode Y-only The chroma planes are not used during the first pass encode, but the vp9_encode_sb() function was operating on them anyway. This was causing the use of uninitialized memory. Change-Id: I5ebafcd3d5e34ed91a8336dad159b573995a939f --- diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 1e25a00a0..436c8d4e0 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -632,7 +632,7 @@ void vp9_first_pass(VP9_COMP *cpi) { vp9_build_inter_predictors_sby(xd, mb_row << 1, mb_col << 1, BLOCK_SIZE_MB16X16); - vp9_encode_sb(cm, x, BLOCK_SIZE_MB16X16); + vp9_encode_sby(cm, x, BLOCK_SIZE_MB16X16); sum_mvr += mv.as_mv.row; sum_mvr_abs += abs(mv.as_mv.row); sum_mvc += mv.as_mv.col;