avcodec/h2645: Fix NAL unit padding
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 Aug 2016 18:41:31 +0000 (20:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 Aug 2016 21:36:18 +0000 (23:36 +0200)
commitcc13bc8c4f0f4afa30d0b94c3f3a369ccd2aaf0b
treecc951b2cf772d43ea307d0fb7bced2a8325a1763
parente2a39b103e5917780744fed6fd4336cf65a220f4
avcodec/h2645: Fix NAL unit padding

The parser changes have lost the support for the needed padding, this adds it back
Fixes out of array reads
Fixes: 03ea21d271abc8acf428d42ace51d8b4/asan_heap-oob_3358eef_5692_16f0cc01ab5225e9ce591659e5c20e35.mkv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h2645_parse.c
libavcodec/h2645_parse.h
libavcodec/h264_parse.c
libavcodec/h264_parser.c
libavcodec/h264dec.c
libavcodec/h264dec.h
libavcodec/hevc.c
libavcodec/hevc_parser.c
libavcodec/qsvenc_hevc.c