avcodec/av1_parse: Check obu_size
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Oct 2018 10:40:38 +0000 (12:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Oct 2018 23:19:45 +0000 (01:19 +0200)
commitc27c7b49dc00a955779ad4b6801a993da5a962de
treebb8384fd8f2c988a6520a4b19e2d57ed3207b166
parentf099946fafb8f4b1beb40b680599ccce96263ccd
avcodec/av1_parse: Check obu_size

Fixes: out of array read
Fixes: SIGSEGV_get_obu_bit_length_av1_parse

Found-by: keval shah <skeval65@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/av1_parse.h