Prevent reading of uninitialized value
authorYaowu Xu <yaowu@google.com>
Wed, 16 Apr 2014 19:22:49 +0000 (12:22 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 16 Apr 2014 20:00:13 +0000 (13:00 -0700)
commit99230aeb0526e13056d8392ba91b1a73c3caabe6
tree48e808e6ba2877f13fbd98b600d4fef8801f7b56
parent14331a84bd1fdadeb5bd1f3d0182d8aee6e0205a
Prevent reading of uninitialized value

This commit added a check of reference frame to make sure that pre
buffer pointers are initialized only when necessary and make them
to 0 if ref frame is intra, hence those buffer should never be used.

Change-Id: Ieb474fcd9feb759f02e2f9c282b7348a8fa31117
vp8/decoder/decodeframe.c