avcodec/adpcmenc: Add FF_CODEC_CAP_INIT_CLEANUP
authorLimin Wang <lance.lmwang@gmail.com>
Fri, 15 May 2020 15:25:59 +0000 (23:25 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Wed, 27 May 2020 13:59:51 +0000 (21:59 +0800)
commit6124cbdcfaab134a066e67706c92c8f01b4e13ff
treec133183e99fff985b857dfbf3194ad2af85637fb
parent430523931544d82be9bbd0960c44a4b2f1452ac8
avcodec/adpcmenc: Add FF_CODEC_CAP_INIT_CLEANUP

then we can remove adpcm_encode_close() in adpcm_encode_init() if have failed.
so the goto error lable will be unnecessary and can be removed later.

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavcodec/adpcmenc.c