sonic: set avctx->channels in sonic_decode_init
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 9 Jun 2015 20:41:24 +0000 (22:41 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 9 Jun 2015 21:21:51 +0000 (23:21 +0200)
commit58995f647b5fa2e1efa33ae4f8b8a76a81ec99df
tree35456b4372ca352b9bd0d2786afa3609bc1654c4
parent3a99f6e79fa3ac4d280f52fddbc234a56d78a488
sonic: set avctx->channels in sonic_decode_init

Otherwise it can be 0 in sonic_decode_frame, causing SIGFPE crashes.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/sonic.c