diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-14 16:28:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 140d871e0873c538b41a29be81b9400dc71f231c (patch) | |
tree | de875383ebe4a48c82a3db79056c77cb77343fb8 /doc/examples/extract_mvs.c | |
parent | 5000bae8305950f0412df240fb17f1f48c8f7590 (diff) | |
download | ffmpeg-140d871e0873c538b41a29be81b9400dc71f231c.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>
(cherry picked from commit ec6f4c51586cc213d16749f930970ba8afd0e38a)
Diffstat (limited to 'doc/examples/extract_mvs.c')
0 files changed, 0 insertions, 0 deletions