diff options
author | Martin Storsjö <martin@martin.st> | 2013-07-15 11:28:46 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-08-24 12:11:57 +0200 |
commit | 9680f84a31fa97272777e43a9234eb20d6da5930 (patch) | |
tree | a7b15aa6faf5fd2f5d888dd1059a838bb6b94d2c /libavcodec/fft.c | |
parent | 505415b98599777f8951d3d86821f542e661e581 (diff) | |
download | ffmpeg-9680f84a31fa97272777e43a9234eb20d6da5930.tar.gz |
ac3dec: Don't consume more data than the actual input packet size
This was handled properly in the normal return case at the end
of the function, but not in this special case.
Returning a value larger than the input packet size can cause
problems for certain library users.
Returning the actual input buffer size unconditionally, since
it is not guaranteed that frame_size is set to a sensible
value at this point.
Cc: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 8f24c12be7a3b3ea105e67bba9a867fe210a2333)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/fft.c')
0 files changed, 0 insertions, 0 deletions