]> granicus.if.org Git - libvpx/commit
Added check to make sure maximum buffer size not exceeded
authorAdrian Grange <agrange@google.com>
Tue, 8 Nov 2011 00:28:13 +0000 (16:28 -0800)
committerAdrian Grange <agrange@google.com>
Tue, 8 Nov 2011 00:28:13 +0000 (16:28 -0800)
commit9dc95b0a122b5f519117c0be6525d980c32f507e
tree5e78f6630fe277f4aab99399acc4424d1077d1a3
parentf89ea3432fd213f0e7c65eceaf6553cb3191306d
Added check to make sure maximum buffer size not exceeded

Added code to clip the buffer level to the maximum buffer
size. Without this the buffer level would increase
unchecked.

This bug was found when encoding an essentially static
scene at 2Mb/s. The encoder is unable to generate frames
consistent with the high data-rate because Q bottoms out
at Qmin.

As frames generated are consistently undersized the buffer
level increases and does not get checked against the
maximum size specified by the user (or default).

Change-Id: Id8a3c6323d3246da50f7cb53ddbf78b5528032c6
vp8/encoder/onyx_if.c