diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-14 16:28:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-19 18:39:58 +0200 |
commit | ec6f4c51586cc213d16749f930970ba8afd0e38a (patch) | |
tree | 098595f57e149f00bc5fa3b594cacf67000a4d56 /libavcodec/sipr16k.c | |
parent | cdc4c268e2fb9daccdb7004a2e5036bf4ce33d13 (diff) | |
download | ffmpeg-ec6f4c51586cc213d16749f930970ba8afd0e38a.tar.gz |
avcodec/flashsvenc: Avoid allocation of buffer, fix memleak
Up until now, the flashsv encoder tried to allocate two buffers in its
init function; if only one of these allocations succeeds, the other
buffer leaks. Fix this by making one of these buffers part of the
context (its size is a compile-time constant).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/sipr16k.c')
0 files changed, 0 insertions, 0 deletions