adpcm_thp: Allow the use of extradata for the adpcm table
authorJames Almer <jamrial@gmail.com>
Fri, 10 May 2013 18:42:40 +0000 (15:42 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 10 May 2013 19:10:53 +0000 (16:10 -0300)
commit22c7784f60c1459ad1b88670857bf71ef2942613
tree4bcf5d4aebd7d0d76386952e517766c39115c131
parentb4866f717ced04b85ecfb9f3706b52cf6353280f
adpcm_thp: Allow the use of extradata for the adpcm table

There are several containers that support adpcm_thp (Also known as Gamecube DSP)
streams, but only thp files contain the coeff table and previous sample inside
each frame.
Some don't even contain previous sample information at all.

This change will make it easier to implement demuxers for said containers
without having to create a new decoder.

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