From 656632b7764ac3c45d03a0ab375fcf239aaf346f Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 22 Aug 2013 10:37:28 -0700 Subject: [PATCH] Added border extension To the source buffer to be encoded as an alt ref frame. This is to fix the problem of using uninitialized memory in encoder. See https://code.google.com/p/webm/issues/detail?id=605 Change-Id: I97618a2fc207e08abcf5301b734aa9e3ad695e2c --- vp9/encoder/vp9_onyx_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index 13b8c82..55b695c 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -3647,6 +3647,8 @@ int vp9_get_compressed_data(VP9_PTR ptr, unsigned int *frame_flags, configure_arnr_filter(cpi, cm->current_video_frame + frames_to_arf, cpi->gfu_boost); vp9_temporal_filter_prepare(cpi, frames_to_arf); + vp9_extend_frame_borders(&cpi->alt_ref_buffer, + cm->subsampling_x, cm->subsampling_y); force_src_buffer = &cpi->alt_ref_buffer; } -- 2.7.4