OSDN Git Service

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>
Wed, 22 Apr 2015 10:27:25 +0000 (12:27 +0200)
commitbfd65092a2b7fc1ae95e8fe79c7f0a61f25b111b
treeb8efcaec018c0f3998892f10ca3665ef07f6e865
parent307c5cb9d4cc3b9373cac5b00ebdc28fc0d593fe
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>
(cherry picked from commit ef16501aebed43e34a3721336e8bee732eca2877)

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