avcodec/h264_slice: Clear top_borders on allocation
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 18 Nov 2015 13:20:07 +0000 (14:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 18 Nov 2015 21:18:01 +0000 (22:18 +0100)
commit6f37226b687f969bcf6e47a4fb5c28a32d107aa3
tree024de02fcf35c7b78ffc62c3185e12c5574a4d1d
parentfc91eeab0b3c59f431653dec4e7358630b2c1f7e
avcodec/h264_slice: Clear top_borders on allocation

In case of bitstream errors the deblock filter and slices can access uninitialized
top_borders from previous slices which did not fill them as they stoped halfway due
to error or where entirely missing.

This also makes code using these tables deterministic in case of missing or damaged
slices

Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_slice.c