OSDN Git Service

takdec: ensure chan2 is a valid channel index
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Tue, 9 Jun 2015 22:12:38 +0000 (00:12 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 20 Mar 2016 00:04:12 +0000 (01:04 +0100)
commita2d1922bde8db2cdac95051918fe81ae18c0376b
tree40104d5322a9b050bcccac880f100c24cd1cfdb4
parent9765549f551ff40869aee1a6492b6a976c86cfe9
takdec: ensure chan2 is a valid channel index

If chan2 is not smaller than the number of channels, it can cause
segmentation faults due to dereferencing a NULL pointer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/takdec.c