Commit 47e2a6e6 authored by Fabrice Bellard's avatar Fabrice Bellard

use av_realloc()

Originally committed as revision 1504 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ddedacfe
...@@ -2262,7 +2262,8 @@ void opt_output_file(const char *filename) ...@@ -2262,7 +2262,8 @@ void opt_output_file(const char *filename)
exit(1); exit(1);
} }
video_enc->rc_override= video_enc->rc_override=
realloc(video_enc->rc_override, sizeof(RcOverride)*(i+1)); av_realloc(video_enc->rc_override,
sizeof(RcOverride)*(i+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