Commit 15cd2a93 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '81688e68'

* commit '81688e68':
  avconv: Check rc_override memory allocation

Conflicts:
	ffmpeg_opt.c

See: 7efabffcMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9d5017a2 81688e68
...@@ -1393,8 +1393,10 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in ...@@ -1393,8 +1393,10 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in
video_enc->rc_override = video_enc->rc_override =
av_realloc_array(video_enc->rc_override, av_realloc_array(video_enc->rc_override,
i + 1, sizeof(RcOverride)); i + 1, sizeof(RcOverride));
if (!video_enc->rc_override) if (!video_enc->rc_override) {
av_log(NULL, AV_LOG_FATAL, "Could not (re)allocate memory for rc_override.\n");
exit_program(1); exit_program(1);
}
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