avcodec/dcadec: Check that the added xch channel isnt already there
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Dec 2014 14:33:05 +0000 (15:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Dec 2014 14:33:59 +0000 (15:33 +0100)
commit7d593495e42e92693cc8f3ce9b42cf3edcea377a
treeed11b564b0d58dfd8f70f58d890d9af23b33a86e
parent973684a4fba91b9c188b3a19d22e59ffaad79be8
avcodec/dcadec: Check that the added xch channel isnt already there

Fixes null pointer dereference
Fixes: signal_sigsegv_369609d_623_cov_2008234281_ES_6.1_16bit.dts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c