diracdec: check if reference could not be allocated
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Tue, 5 May 2015 21:51:48 +0000 (23:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 5 May 2015 23:54:51 +0000 (01:54 +0200)
commitd93181ef3eacdb862d93448f31c97765a523d1db
treec97b9da4410e8a7e6083895280ae1b85a8fe688c
parent9e66b39aa87eb653a6e5d15f70b792ccbf719de7
diracdec: check if reference could not be allocated

s->ref_pics[i] is later used as ref argument of interpolate_refplane,
where it is dereferenced.

If it is NULL, it causes a segmentation fault.

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