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>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit4ea21dd574a725504de25b3e8161065b2a157136
treea29b7a21b7e87b33b5ff1276ac45a2f037185eb4
parent0a391b738ecbf36c9106b52bbeb552d3ab269032
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>
(cherry picked from commit a0296fc056f0d86943c697c505a181744b07dd45)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c