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 11:30:41 +0000 (12:30 +0100)
commit0c5a71fececbfd98e4cf3d3ae4a64660eba8c2b9
treec742184738f0f6451ce96a80d0b6ecc23ba80af3
parent07da25548f79356b75713c1ded3290eebec75d1c
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>
(cherry picked from commit 7ec9c5ce8a753175244da971fed9f1e25aef7971)

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