diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-07 17:26:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-07 18:22:37 +0100 |
commit | 2d7fd4cc33d5b2b61fda4315d261bd72625eb252 (patch) | |
tree | 488afa8d1c6442625735825430c8793cb1c3e532 /ffmpeg_opt.c | |
parent | e00499eb4c80752b2c464f3a98bf0b6ce7b1e212 (diff) | |
download | ffmpeg-2d7fd4cc33d5b2b61fda4315d261bd72625eb252.tar.gz |
ffmpeg_opt: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index ac93eb50f6..7594b34578 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -1383,8 +1383,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in } /* FIXME realloc failure */ video_enc->rc_override = - av_realloc(video_enc->rc_override, - sizeof(RcOverride) * (i + 1)); + av_realloc_array(video_enc->rc_override, + i + 1, sizeof(RcOverride)); video_enc->rc_override[i].start_frame = start; video_enc->rc_override[i].end_frame = end; if (q > 0) { |