eamad: Check against minimum supported dimensions

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ADPCM DTK decoder

Signed-off-by: James Almer <jamrial@gmail.com>
ADP demuxer

Signed-off-by: James Almer <jamrial@gmail.com>
adpcm_thp: Use packet side data for coeff table and previous sample

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.

The BRSTM fate test is updated because the contents of each frame are changed
and the test makes a crc check of said frames instead of the decoded samples.

Signed-off-by: James Almer <jamrial@gmail.com>
RSD demuxer

Signed-off-by: James Almer <jamrial@gmail.com>
RedSpark demuxer

Signed-off-by: James Almer <jamrial@gmail.com>
ADPCM IMA Radical decoder

Signed-off-by: James Almer <jamrial@gmail.com>