Fix FrameSizeTestsLarge unit-test on 32-bit arch.
authorDeb Mukherjee <debargha@google.com>
Fri, 18 Jul 2014 10:06:07 +0000 (03:06 -0700)
committerDeb Mukherjee <debargha@google.com>
Fri, 18 Jul 2014 10:12:08 +0000 (03:12 -0700)
commitbdbaa5b40603784105051039fa7d97df030763a8
tree904ceacbda5c661e2749e3437d9cc486e5827c8c
parent4109b8e5357ccfe95841fde1b8f8c36d1e402114
Fix FrameSizeTestsLarge unit-test on 32-bit arch.

If the img allocation fails the test used to crash before on
32 bit architecture. This patch uses null check on img in
FillFrame. Also, if the first frame initialization has not been
conducted VPX_CODEC_ERROR is expected to return rather than
VPX_CODEC_OK.

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