Commit 149f02b0 authored by michael's avatar michael

10l (segfault fix)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3039 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96ddf01e
......@@ -678,6 +678,7 @@ void ff_er_frame_end(MpegEncContext *s){
av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
for(i=0; i<2; i++){
pic->ref_index[i]= av_mallocz(size * sizeof(uint8_t));
pic->motion_val_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t));
pic->motion_val[i]= pic->motion_val_base[i]+2;
}
......
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