dcaenc: cleanup on init failure and add a threadsafe init codec cap
authorRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 13 Jan 2018 18:03:42 +0000 (18:03 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 13 Jan 2018 18:06:59 +0000 (18:06 +0000)
commit56e11ebf55a5e51a8a7131d382c2020e35d34f42
tree732d72fa628f918d34c5134820b5dca50f137d20
parentc7d726f7f466f69af8321a5e01133e64b4885f53
dcaenc: cleanup on init failure and add a threadsafe init codec cap

The encoder didn't clean up if a malloc failed during init.
It also doesn't need any external tables to be initialized on init.
Finally, it didn't need to check for whether avctx->priv_data exists during
uninit.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/dcaenc.c