libfdk-aacdec: Clean up properly if the init fails
authorMartin Storsjö <martin@martin.st>
Fri, 14 Aug 2015 08:33:03 +0000 (11:33 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 15 Aug 2015 21:18:00 +0000 (00:18 +0300)
commitf34b152eb7b7e8d2aee57c710a072cf74173fbe1
tree4f3bab2c370c3b1e081b52d0a1a333ebebb50032
parent1b90433f79de857550d4d8c35c89fbe954920594
libfdk-aacdec: Clean up properly if the init fails

Previously most of the error paths leaked.

Also add FF_CODEC_CAP_INIT_THREADSAFE while adding caps_internal;
this decoder wrapper doesn't have any static data that is initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libfdk-aacdec.c