avcodec/audiotoolboxdec: add FF_CODEC_CAP_INIT_CLEANUP to the decoder capabilities
authorJames Almer <jamrial@gmail.com>
Thu, 25 May 2017 14:07:42 +0000 (11:07 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 6 Sep 2017 14:35:14 +0000 (11:35 -0300)
commite49338a9c062df7f3167433d81a1528a978fd547
treeacb9abd18b31d31b31d94fdb63b9a65755ca7072
parent7273e234dee5dfeee67cc365a8f7fa0b8211127c
avcodec/audiotoolboxdec: add FF_CODEC_CAP_INIT_CLEANUP to the decoder capabilities

Extradata may be allocated and the AudioConverterRef may be created during init(),
which in case of a failure would not be freed as close() isn't called afterwards.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/audiotoolboxdec.c