vp9: Fix to crash in svc code.
authorMarco <marpan@google.com>
Wed, 7 Dec 2016 17:50:27 +0000 (09:50 -0800)
committerMarco <marpan@google.com>
Fri, 9 Dec 2016 16:57:09 +0000 (08:57 -0800)
commit076d4bd91ad0ec042924d2772b2002c9e7d3d48b
treed28f681c8a37b341cbb7147acc70b17f6a789f3a
parent7ba9d31e3f547128ea3eed9cddc94caf160f916a
vp9: Fix to crash in svc code.

use_base_mv assumes 2x2 scaling, so fix is to shutoff
this feature unless spatial scale factors are 2.

Added svc unittest for 2 spatial layers with 5x5 scaling,
which generates the issue without this fix.

Also fix some settings in svc unittest:
let the speed setting vary (from 5 to 8), and enable static threshold.

BUG=webm:1344

Change-Id: Idfd0a6c633c21b49a0479601506302cfe974e30e
test/datarate_test.cc
vp9/encoder/vp9_svc_layercontext.c