avcodec/h264_slice: Clear ref_counts on redundant slices
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 16:55:41 +0000 (17:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 20:17:51 +0000 (21:17 +0100)
commit912cb27f73d8d08ef4fb882f434ff8ea7cc15a81
tree63282bb5344d131452def62fd4bf3a962c940852
parent4adc99ecb6e9aec301fdd79ec097d433346045b6
avcodec/h264_slice: Clear ref_counts on redundant slices

Fixes reading freed memory
Fixes: 568/clusterfuzz-testcase-6107186067406848

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 c03029a835949fc0e68b4c6558ebcdc3ae137087)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264.c