diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 18:57:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 20:33:53 +0100 |
commit | 727cb2bda9df0f5f66d19846d529da73751737c3 (patch) | |
tree | 49b5f3873b7c8cb1a8223994357bf1eb742e8b82 | |
parent | a299cd5ab3567bdf855dc84cdbed4d22ea5fcbb6 (diff) | |
download | ffmpeg-727cb2bda9df0f5f66d19846d529da73751737c3.tar.gz |
avcodec/ass: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ass.c | 2 |
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; |