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 17:31:04 +0000 (18:31 +0100)
commitc03029a835949fc0e68b4c6558ebcdc3ae137087
treeff7ca3df9e5976fcc9d66359a6d64db971f9e781
parentdac51d2bbdb04445876dc33785c363a9597cbad2
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>
libavcodec/h264_slice.c