interplayacm: validate number of channels
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 30 Oct 2016 20:41:11 +0000 (21:41 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 30 Oct 2016 21:38:23 +0000 (22:38 +0100)
commit5540d6c1343e6d1e06d6601b7d35884761711e3e
tree0f33bc3c7dc53e25a695395ee6628bc309e21cb4
parent14e4e26559697cfdea584767be4e68474a0a9c7f
interplayacm: validate number of channels

The number of channels is used as divisor in decode_frame, so it must
not be zero to avoid SIGFPE crashes.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/interplayacm.c