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)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 8 Mar 2015 19:34:38 +0000 (19:34 +0000)
commita73b2c288e3dace6e054a5b48640978be1d5df84
treefefd1ceff37df660f785bd6d34c49c9b36ff7ec4
parent2ef2f60b4f0308d1c871091c9c1a9641d14ec585
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