Fix show_existing_frame not decreasing frame buffer ref counter.
authorAlexander Voronov <avoronov@graphics.cs.msu.ru>
Mon, 14 Jul 2014 12:36:21 +0000 (16:36 +0400)
committerAdrian Grange <agrange@google.com>
Tue, 15 Jul 2014 18:06:15 +0000 (11:06 -0700)
commit0aa2af55b5646ffc37d00714226997df13253534
tree6bfe213a3be0128ca37c77bf921878b462cdca71
parent6ce515b9ff9000740bc47bb2dfa1b80df6ec2fc9
Fix show_existing_frame not decreasing frame buffer ref counter.

The issue was introduced by commit g7c43fb6. If current frame
is repeated from existing-ref pool, frame buffer ref counter
is not decreased, so buffer isn't released. Decoder fails being
unable to allocate new frame buffer at some point.

Added a test vector to verify that the condition will not
recur later. Test vector was generated by the code in this patch:
https://gerrit.chromium.org/gerrit/#/c/70862/

Change-Id: I8af96eb5b9670176e01a281d2e18bd458712cf78
test/test-data.sha1
test/test.mk
test/test_vectors.cc
vp9/decoder/vp9_decoder.c