]> git.sesse.net Git - ffmpeg/commit
avcodec/indeo5: Fix memleaks upon allocation error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 14 Sep 2020 18:59:12 +0000 (20:59 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 15 Sep 2020 17:25:26 +0000 (19:25 +0200)
commitd8fc69bd6a20394adf42406bf80bd06b4c8d7384
tree4903613b26d5d525e0ba4c6124a028a6b7db7057
parente411a3af11e5d00a311f594a45c17f74898cb46e
avcodec/indeo5: Fix memleaks upon allocation error

ff_ivi_init_planes() might error out after having allocated some arrays.
Set the FF_CODEC_CAP_INIT_CLEANUP flag in order to free these arrays in
this case.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/indeo5.c