diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-05 12:23:49 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-08 13:27:22 +0100 |
commit | 8d21eccd267acfcde3d35bbbf6621d6c3282e1ea (patch) | |
tree | 6ef92e391d94fb00fe49d9695c399e5a2f4d1e47 /libavcodec/mpeg12.c | |
parent | a773455c4f02558e3cd24ae79616edee146da146 (diff) | |
download | ffmpeg-8d21eccd267acfcde3d35bbbf6621d6c3282e1ea.tar.gz |
avcodec/g722enc: Validate parameters before using them
In case trellis is outside of 0..23, an invalid shift and/or a signed
integer overflow happens; furthermore, it can lead to the request to
allocate nonsense amounts of memory. So validate first.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mpeg12.c')
0 files changed, 0 insertions, 0 deletions