diff options
author | James Zern <jzern@google.com> | 2019-07-09 19:03:58 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-11 20:18:46 +0100 |
commit | ac8c0c5bd1e54ca3f7cd55cd8049f13267290e29 (patch) | |
tree | 78c8cca3c5aeabb7f9589c0329fa1f3edde4eebe /libavformat/v210.c | |
parent | e3e762fb523614b0bf5e218b5e4d80815184447e (diff) | |
download | ffmpeg-ac8c0c5bd1e54ca3f7cd55cd8049f13267290e29.tar.gz |
avcodec/utils, avcodec_open2: close codec on failure
after a successful init if the function fails for another reason close
the codec without requiring FF_CODEC_CAP_INIT_CLEANUP which is meant to
cover init failures themselves. fixes a memory leak in those cases.
BUG=oss-fuzz:15529
Signed-off-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b1febda061955c6f4bfbc1a75918b5e75e7d7f80)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/v210.c')
0 files changed, 0 insertions, 0 deletions