aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alacdsp.h
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-01-09 20:50:03 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-01-26 23:47:42 +0800
commit79e9bdf7494b5ff54af1514401a74b1e8c85aa7c (patch)
treef2de65096955e8619dfa4cca649cefb6fc38acfa /libavcodec/alacdsp.h
parentb8fca1f1f5ece5f3ca9d6db0cb72c1918ba07deb (diff)
downloadffmpeg-79e9bdf7494b5ff54af1514401a74b1e8c85aa7c.tar.gz
avcodec/videotoolbox: fix NULL pointer dereference
In the code path of av_videotoolbox_default_init/init2(), avctx->internal->hwaccel_priv_data is NULL and passed to decoder_cb.decompressionOutputRefCon. Then it will be dereferenced inside videotoolbox_decoder_callback(). Delay videotoolbox_star() until ff_videotoolbox_common_init() to fix the bug. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/alacdsp.h')
0 files changed, 0 insertions, 0 deletions