avcodec/pngenc: Check that there is at least 1 frame
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Oct 2015 02:50:16 +0000 (04:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Oct 2015 02:50:16 +0000 (04:50 +0200)
commita852db796edce2792525d88ab47cf78222e01512
treef1d75fa4850acde035f30b0888a4df0f90b06881
parente96ecaf053d8d606e38ae2e56ba6cf58875021b0
avcodec/pngenc: Check that there is at least 1 frame

Fixes null pointer dereference
Fixes CID1322330

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