avcodec/h264_slice: Do not attempt to render into frames already output
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Jan 2018 22:42:01 +0000 (23:42 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:15 +0000 (23:19 +0100)
commit3f86cc06808423b585d2f6a70ad3e252854a5d1a
tree5d3484752a5f6670845164c0c8be54a7b842d49f
parentc4ead1ab27f4a00dcc7f0e6a2a2794220fd607d5
avcodec/h264_slice: Do not attempt to render into frames already output

Fixes: null pointer dereference
Fixes: 4698/clusterfuzz-testcase-minimized-5096956322906112

This testcase does not reproduce the issue before 03b82b3ab9883cef017e513c7d0b3b986b3b3e7b

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 476665d4de989dba48ec1195215ccc8db54538f4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_slice.c