avformat/adxdec: check avctx->channels for invalid values
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 25 Feb 2015 21:55:44 +0000 (22:55 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Feb 2015 20:02:13 +0000 (21:02 +0100)
commitcd74b344c23572080a47e22eb09e380cbbddb0e0
tree5bb4018323a3316a45b08d0a89a50cb6d368b9ab
parentb49f8de4ec33e8c8c599b5fba00416f2935ff4a7
avformat/adxdec: check avctx->channels for invalid values

This avoids a null pointer dereference of pkt->data.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7faa40af982960608b117e20fec999b48011e5e0)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/adxdec.c