dds: limit 4 bpp handling to AV_PIX_FMT_PAL8
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 15 Nov 2016 21:11:05 +0000 (22:11 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 16 Nov 2016 18:29:45 +0000 (19:29 +0100)
commit90ebf3c428352eb1d4116bf97b470ceca295d7d6
tree363c6e53b5ccdf0054c56fb7213681de21073bfd
parent605f3084fc85ee47a13808665c9016c91d57ac28
dds: limit 4 bpp handling to AV_PIX_FMT_PAL8

This fixes NULL pointer dereferencing for formats, where frame->data[1]
is not allocated.

The problem was introduced in commit
257fbc3af4cba08ac471dab68924182160bde6fd.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/dds.c