10l (segfault fix)

Originally committed as revision 3039 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 21 years ago
parent 9007f51460
commit 6c08a05743
  1. 1
      libavcodec/error_resilience.c

@ -678,6 +678,7 @@ void ff_er_frame_end(MpegEncContext *s){
av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
for(i=0; i<2; i++){ 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_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t));
pic->motion_val[i]= pic->motion_val_base[i]+2; pic->motion_val[i]= pic->motion_val_base[i]+2;
} }

Loading…
Cancel
Save