]> granicus.if.org Git - libvpx/commit
vp9-dynamic resize: Fix bug on releasing scaled reference.
authorMarco <marpan@google.com>
Mon, 8 Feb 2016 18:41:13 +0000 (10:41 -0800)
committerMarco <marpan@google.com>
Tue, 9 Feb 2016 19:10:28 +0000 (11:10 -0800)
commitf288c943c4d6c3fb03266dee821df797fb99bde0
tree1a5af861e43edc5fd6ff10fc90f52e870ba8bf06
parentaff0a802e70ee87cd0a1673f3cffaa0b9d6112b4
vp9-dynamic resize: Fix bug on releasing scaled reference.

When the codec frame size is the same as the reference frame size,
release the scaled reference before assigning it a new buf_idx.
Only affects 1 pass non-svc mode, where the scaled references are
release only under certain conditions (to prevent un-needed scaling
of the references every frame).

Modified a unittest that can trigger this bug without this change.

https://code.google.com/p/chromium/issues/detail?id=582598

Change-Id: I9a884e36ebd7608b1641ec2a469e20a4f829cf43
test/resize_test.cc
vp9/encoder/vp9_encoder.c