]> git.sesse.net Git - ffmpeg/commit
avcodec/hevcdec: dynamic allocate sList and HEVClcList
authorNuo Mi <nuomi2021@gmail.com>
Sun, 29 Nov 2020 15:30:10 +0000 (23:30 +0800)
committerAnton Khirnov <anton@khirnov.net>
Thu, 10 Dec 2020 08:44:11 +0000 (09:44 +0100)
commitd4751d8c630983e6343c3100debb5de80be50ac3
treeae17bc14f0534cb1c2675951a863b38d98697e89
parent6a94afbd5bf4aa3ccab12f038e8bbae7ef3973c0
avcodec/hevcdec: dynamic allocate sList and HEVClcList

following comandline will crash the ffmpeg
ffmpeg -threads 17 -thread_type slice -i WPP_A_ericsson_MAIN_2.bit out.yuv -y

the HEVCContext->sList size is MAX_NB_THREADS(16), any > 16 thread number will crash the application

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/hevcdec.c
libavcodec/hevcdec.h