wmaenc: require a large enough output buffer to prevent overwrites
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 2 Mar 2012 21:33:33 +0000 (16:33 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sun, 4 Mar 2012 20:26:29 +0000 (21:26 +0100)
commit2e341bc99af72f1ae7c9812985635cbfeeb50269
tree98dd737f917e2d86b55ed5c94e2ac1454ede1a8e
parentb7c8fff80351249d448b93608bfac832c1ee3b4b
wmaenc: require a large enough output buffer to prevent overwrites

The maximum theoretical frame size is around 17000 bytes. Although in
practice it will generally be much smaller, we require a larger buffer
just to be safe.

CC: libav-stable@libav.org
(cherry picked from commit dfc4fdedf8cfc56a505579b1f2c1c5efbce4b97e)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/wmaenc.c