wmaenc: limit block_align to MAX_CODED_SUPERFRAME_SIZE
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 2 Mar 2012 21:10:00 +0000 (16:10 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Apr 2012 16:33:27 +0000 (18:33 +0200)
commit74bd46e82ad6e1cf57b5427a53a5213e7dfa61cd
tree7b798a245b41d0e8bdbf7b3d7747a989044fb8af
parentc932844882f315928688c704fd9cdcb7eee37d17
wmaenc: limit block_align to MAX_CODED_SUPERFRAME_SIZE

This is near the theoretical limit for wma frame size and is the most that
our decoder can handle. Allowing higher bit rates will just end up padding
each frame with empty bytes.

Fixes invalid writes for avconv when using very high bit rates.

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

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