Commit 727cb2bd authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ass: Use av_realloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a299cd5a
......@@ -154,7 +154,7 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
if (!av_bprint_is_complete(&buf))
goto errnomem;
rects = av_realloc(sub->rects, (sub->num_rects+1) * sizeof(*sub->rects));
rects = av_realloc_array(sub->rects, (sub->num_rects+1), sizeof(*sub->rects));
if (!rects)
goto errnomem;
sub->rects = rects;
......
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