summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-08-22 10:37:28 -0700
committerYaowu Xu <yaowu@google.com>2013-08-23 11:31:28 -0700
commit656632b7764ac3c45d03a0ab375fcf239aaf346f (patch)
tree9cca9eccfdcc0aab5af4879f271c2fa089f0759b
parentf39bf458e55c55f86d46b29a4b34d91a07e2ad1b (diff)
downloadlibvpx-656632b7764ac3c45d03a0ab375fcf239aaf346f.tar
libvpx-656632b7764ac3c45d03a0ab375fcf239aaf346f.tar.gz
libvpx-656632b7764ac3c45d03a0ab375fcf239aaf346f.tar.bz2
libvpx-656632b7764ac3c45d03a0ab375fcf239aaf346f.zip
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
-rw-r--r--vp9/encoder/vp9_onyx_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c
index 13b8c82f2..55b695cb3 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;
}