avcodec/pngdec: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 May 2017 16:40:46 +0000 (18:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 May 2017 16:41:30 +0000 (18:41 +0200)
commita0296fc056f0d86943c697c505a181744b07dd45
tree8bfedf6bce2c6157ed89d00e4072b1a509c06123
parentcabfed6895fcc679cd6a6244a12d800e0f3f2d20
avcodec/pngdec: Use ff_set_dimensions()

Fixes OOM
Fixes: 1314/clusterfuzz-testcase-minimized-4621997222920192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c