Commit 2d7fd4cc authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg_opt: Use av_realloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e00499eb
...@@ -1383,8 +1383,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in ...@@ -1383,8 +1383,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in
} }
/* FIXME realloc failure */ /* FIXME realloc failure */
video_enc->rc_override = video_enc->rc_override =
av_realloc(video_enc->rc_override, av_realloc_array(video_enc->rc_override,
sizeof(RcOverride) * (i + 1)); i + 1, sizeof(RcOverride));
video_enc->rc_override[i].start_frame = start; video_enc->rc_override[i].start_frame = start;
video_enc->rc_override[i].end_frame = end; video_enc->rc_override[i].end_frame = end;
if (q > 0) { if (q > 0) {
......
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