Properly set size based on actual buffer layout
authorYaowu Xu <yaowu@google.com>
Tue, 30 Dec 2014 16:35:40 +0000 (08:35 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 30 Dec 2014 17:20:36 +0000 (09:20 -0800)
commit32d88c22095d21183e077e360254cef0ef34499c
tree0cc8aa0daa39504cb4be8bb0dfda963f4dc10b11
parentf5d574c566de8f555a3d0dcdb13f0afe0e804d68
Properly set size based on actual buffer layout

VP9FrameSizeTestsLarge.OneByOneVideo has been causing a failure in
jenkins libvpx__unit_tests-valgrind_long for "using of uninitialized
memory", the root cause was that the input image for this test was
not initialized with proper size, therefore plan U and V were not
initialized at all.

This commit fixes the size initialization, and resolves the issue.

Change-Id: Ic4dd1542b7bb0cb260a1e0aeeb505db21ae5edc8
test/encode_test_driver.cc
test/video_source.h