avcodec/pngdec: Clean up on av_frame_ref() failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 00:42:11 +0000 (02:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Oct 2017 15:34:42 +0000 (17:34 +0200)
commitbf6cd808bed4060de3d30c729cc29feee5d6f47a
tree5e9c5f283839ba15b56022245feb6b9d01efeb13
parent9f7042f9cd0f4911bc5cebfcb4489bbd77826841
avcodec/pngdec: Clean up on av_frame_ref() failure

Fixes: memleak
Fixes: 3203/clusterfuzz-testcase-minimized-4514553595428864

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5480e82d77770e81e897a8c217f3c7f0c13a6de1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c