avcodec/adpcm: refactor init/flush code
authorZane van Iperen <zane@zanevaniperen.com>
Wed, 31 Mar 2021 07:23:34 +0000 (17:23 +1000)
committerZane van Iperen <zane@zanevaniperen.com>
Sat, 10 Apr 2021 04:42:18 +0000 (14:42 +1000)
commitc012f9b265e172de9c240c9dfab8665936fa3e83
treef031332d6629b96b778988dec038876c99989c5e
parent9e89a23eac1d5ab6f20c5c281d224e9218312a0b
avcodec/adpcm: refactor init/flush code

Most of the codecs just need everything zeroed. Those that don't
are either handled inline during decode, or pull state from
extradata.

Move state reset/init functionality into adpcm_flush(), and
invoke it from adpcm_decode_init().

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
libavcodec/adpcm.c