avcodec/pngenc: Replace memcpy by av_image_copy()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jan 2016 23:35:57 +0000 (00:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jan 2016 02:38:43 +0000 (03:38 +0100)
commit7ec9c5ce8a753175244da971fed9f1e25aef7971
treef8cef37b50bced51b93960334a5e5ee7dbba712d
parentc29e87ad55a2be29cc8ac5c0e047512c1f5d34d4
avcodec/pngenc: Replace memcpy by av_image_copy()

Fixes out of array access
Fixes: 0cf176e6d3ab9fe924f39738e513f547/asan_generic_4a54aa_3431_aaa28be1cb32e307a9890cad06f84fba.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngenc.c