summaryrefslogtreecommitdiff
path: root/libavcodec/ass.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-09 18:57:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-09 20:33:53 +0100
commit727cb2bda9df0f5f66d19846d529da73751737c3 (patch)
tree49b5f3873b7c8cb1a8223994357bf1eb742e8b82 /libavcodec/ass.c
parenta299cd5ab3567bdf855dc84cdbed4d22ea5fcbb6 (diff)
avcodec/ass: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r--libavcodec/ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index 3a37ceee26..ea247f8ed0 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -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;