Prevent the usage of invalid best_mode_index
authorYaowu Xu <yaowu@google.com>
Thu, 10 Apr 2014 00:32:48 +0000 (17:32 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 10 Apr 2014 00:56:06 +0000 (17:56 -0700)
commit1dcc1aa9423baf3bf453f9b2c0bcaed201920d81
treec1861e03e4362238b2f1d871e8b7b07084b0d076
parent2dc92482d060ba57926301d9e74dff962e412d7e
Prevent the usage of invalid best_mode_index

This commit changed the initialization of best_mode_index to -1 to make
sure it is not mistakenly used for mode masking.

Change-Id: I75b05db51466070dd23c4ee57a4d4b40764dc019
vp9/encoder/vp9_rdopt.c