alac: Limit max_samples_per_frame
authorMartin Storsjö <martin@martin.st>
Tue, 3 Sep 2013 08:54:03 +0000 (11:54 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 7 Sep 2013 08:18:41 +0000 (10:18 +0200)
commit3d91117df0034ca9458e4b791a182082a50a6ad9
tree66289e2776cba5003686ed3898122f754ff26933
parent9486e98712879e1f3b2d83bbfc361e402b535005
alac: Limit max_samples_per_frame

Otherwise buffer size calculations in allocate_buffers could
overflow later, making the code think a large enough buffer
actually was allocated.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit f7c5883126f9440547933eefcf000aa78af4821c)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/alac.c