Commit fe31fb6e authored by Jean-Paul Saman's avatar Jean-Paul Saman

modules/codec/substext.h: fix possible segmentation memory in decoder_NewSubpictureText()

parent 84b2150b
......@@ -93,6 +93,8 @@ static void SubpictureTextDestroy(subpicture_t *subpic)
static inline subpicture_t *decoder_NewSubpictureText(decoder_t *decoder)
{
subpicture_updater_sys_t *sys = calloc(1, sizeof(*sys));
if (unlikely(!sys))
return NULL;
subpicture_updater_t updater = {
.pf_validate = SubpictureTextValidate,
.pf_update = SubpictureTextUpdate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment