cook: check subacket count
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Apr 2012 17:28:35 +0000 (19:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 5 May 2012 22:47:44 +0000 (00:47 +0200)
commit1ca4e70b6c52601e376c672741a960761c0b2516
tree9097d66d5c5b080023e309e9a48c2bba0f475c54
parent25a28022390de45ca2c75497d213da51472f6c4f
cook: check subacket count

Fixes out of array writes.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5a35bd92ad6b535fd5d3a7513169661de66ec247)
libavcodec/cook.c