mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/ass: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a299cd5ab3
commit
727cb2bda9
@ -154,7 +154,7 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
|
|||||||
if (!av_bprint_is_complete(&buf))
|
if (!av_bprint_is_complete(&buf))
|
||||||
goto errnomem;
|
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)
|
if (!rects)
|
||||||
goto errnomem;
|
goto errnomem;
|
||||||
sub->rects = rects;
|
sub->rects = rects;
|
||||||
|
Loading…
Reference in New Issue
Block a user