aboutsummaryrefslogtreecommitdiffstats
path: root/fftools
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2019-07-09 19:03:58 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2019-11-14 23:30:37 +0100
commit7a026998b07ebfbf419d64106be11d9486312c91 (patch)
treefd3d32030d520f3a7ff4e97bb5d212a5234118e2 /fftools
parent49b4d41ec1b33214aac0f3e51c0ca177e3dfeb37 (diff)
downloadffmpeg-7a026998b07ebfbf419d64106be11d9486312c91.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 'fftools')
0 files changed, 0 insertions, 0 deletions