alac: Limit max_samples_per_frame
authorMartin Storsjö <martin@martin.st>
Tue, 3 Sep 2013 08:54:03 +0000 (11:54 +0300)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:07:52 +0000 (20:07 -0400)
commit110680c5a2098505400f4fdff4c994020a377d19
treeb5d59727170ed307fb986f9fb191934d8dcafdd9
parent7fa72700298107fe756311ecb4dee5270ff12d35
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