alac: Limit max_samples_per_frame
authorMartin Storsjö <martin@martin.st>
Tue, 3 Sep 2013 08:54:03 +0000 (11:54 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 3 Sep 2013 19:56:36 +0000 (22:56 +0300)
commitf7c5883126f9440547933eefcf000aa78af4821c
treece5af5e84b918905fb14476eb8d7b638ff25e71d
parent0fbda03e5cfce9d37a263abd08947e5a64ed8ee9
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>
libavcodec/alac.c