pngdec: check s->last_picture.f->data[0] before using it
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Sun, 3 May 2015 14:21:39 +0000 (16:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 May 2015 15:24:28 +0000 (17:24 +0200)
commit287dbb0771d558b336e377d0594e26c0a6291755
treee916b76597c8af506a549112379aa27a07f54cc9
parent042260cde4ecf716438c5fc92d15ad5f037ee2e1
pngdec: check s->last_picture.f->data[0] before using it

This check was removed in commit 08aec6f6, but
s->last_picture.f->data[0] is still used in handle_p_frame_apng
unconditionally.

This fixes a segmentation fault.

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