Correct the logic of ready_for_new_data.
authorhkuang <hkuang@google.com>
Fri, 17 Oct 2014 17:09:56 +0000 (10:09 -0700)
committerhkuang <hkuang@google.com>
Fri, 17 Oct 2014 17:09:56 +0000 (10:09 -0700)
commite3bf55dedbe9c95824f53a22a241166579e50dbe
treeb5ece5c66933bcb1c64e1bbcc5526e6eec3787f5
parent00f1cf40ed90acd7e5a94ea7fc9c7b5e6fbc01a0
Correct the logic of ready_for_new_data.

This should be set right after decoder really start to decode frame
instead setting at the end.

Even decoder does not have a displayable frame to show and return NULL
to application, this should be set too.

Change-Id: If0313a834bc64e3b0f05a84f4459d444d9eab0d8
vp9/decoder/vp9_decoder.c