avformat/adxdec: set avctx->channels in adx_read_header
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Feb 2015 00:06:57 +0000 (01:06 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 5 Mar 2015 14:57:48 +0000 (15:57 +0100)
commitc73c3c34fe72bb06966450207917ce902146b172
treef61c537c0106cde11a45a8a3a6f4e11684d42af9
parentbb4edddd9389cc1601db618ed3c1375b62628d04
avformat/adxdec: set avctx->channels in adx_read_header

It is used in adx_read_packet, which currently depends on the
decoder/parser setting this value between reading the file header and
demuxing the first packet.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/adxdec.c