Browse Source

ffmpeg_opt: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
2d7fd4cc33
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ffmpeg_opt.c

+ 2
- 2
ffmpeg_opt.c View File

@@ -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) {


Loading…
Cancel
Save