]> git.sesse.net Git - ffmpeg/commit
avcodec/ffv1enc: Fix memleaks on init failure
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 14 Sep 2020 03:30:15 +0000 (05:30 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 16 Sep 2020 22:09:08 +0000 (00:09 +0200)
commitf9215d0bb20242299f3654fd4646511665b20c4c
tree0f6583a5862b91392fffd204a0ad358e3c3ec5e1
parenta0750f412ade5a969b1f90e038d707d531c97342
avcodec/ffv1enc: Fix memleaks on init failure

The FFV1 encoder has so far not cleaned up after itself in this case;
but it can be done easily by setting the FF_CODEC_CAP_INIT_CLEANUP flag.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/ffv1enc.c