alsdec: ensure channel reordering is reversible
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Sat, 18 Apr 2015 16:31:36 +0000 (18:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Apr 2015 17:26:17 +0000 (19:26 +0200)
commitef16501aebed43e34a3721336e8bee732eca2877
tree787cb5b076d7b0efcacd171c32aeeeb4d92ae012
parentd8c52f5d04fce8d9a1a86782fba95b26b6ecd951
alsdec: ensure channel reordering is reversible

If the same idx is used for more than one i, at least one entry in
sconf->chan_pos remains uninitialized.

This can cause segmentation faults.

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