mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Merge commit '81688e68f9'
* commit '81688e68f9': avconv: Check rc_override memory allocation Conflicts: ffmpeg_opt.c See:7efabffc28Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
15cd2a93e7
1 changed files with 3 additions and 1 deletions
|
|
@ -1393,8 +1393,10 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in
|
|||
video_enc->rc_override =
|
||||
av_realloc_array(video_enc->rc_override,
|
||||
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);
|
||||
}
|
||||
video_enc->rc_override[i].start_frame = start;
|
||||
video_enc->rc_override[i].end_frame = end;
|
||||
if (q > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue