wavpackenc: proper buffer allocation
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Tue, 19 Aug 2014 12:26:49 +0000 (12:26 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Aug 2014 16:04:25 +0000 (18:04 +0200)
commit2ba58bec20b0039ccc40cfba59af6d56de16e8b1
tree0912f38dfe977154ffd7a521bc427516876333db
parent11a39bdf534a4ead634b4a593c66ebf756910b9b
wavpackenc: proper buffer allocation

The allocation didn't account for headers, that can be easily 79 bytes.
As a result, buffers allocated for a few samples (e.g. 5 in the original
bug) could be undersized.

Fixed ticket #2881.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wavpackenc.c