get_ref_frame: check ref_frame_map value
authorJames Zern <jzern@google.com>
Sun, 10 Aug 2014 01:54:28 +0000 (18:54 -0700)
committerJames Zern <jzern@google.com>
Wed, 13 Aug 2014 00:47:04 +0000 (17:47 -0700)
commit3caed4f8fdecaf2a9f4faf591f7c3f7cd739ce8f
tree1d1caab8d9b58d3a44591326f5e15393988d697f
parent7d9da93a973d53c65db8f174b2a70297a9d2a49f
get_ref_frame: check ref_frame_map value

'ref_frame_map' is initialized to -1. avoids using an invalid index  if
VP9_GET_REFERENCE/VP8_COPY_REFERENCE controls are issued after a decode
error.

Change-Id: I4599762c4d0b07a5943a72bf4a86ccb596cc062a
test/decode_api_test.cc
vp9/common/vp9_onyxc_int.h