avcodec/pngdec: Alloc buffer after blend_op check in handle_p_frame_apng()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Oct 2015 11:09:56 +0000 (13:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Oct 2015 11:09:56 +0000 (13:09 +0200)
commit47c5a3058eeae2043bd0dc2704b024cac8adcb3b
tree85393983536a1273327c97f993c14bceaefeaa22
parent14573b9b7cb0683310a91d5bd2e73bd575af3f49
avcodec/pngdec: Alloc buffer after blend_op check in handle_p_frame_apng()

Avoids memleak on error
Fixes CID1322342

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c