10l (segfault fix)
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Dec 2003 11:35:54 +0000 (11:35 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Dec 2003 11:35:54 +0000 (11:35 +0000)
Originally committed as revision 2633 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/error_resilience.c

index adec943..fd39926 100644 (file)
@@ -677,6 +677,7 @@ void ff_er_frame_end(MpegEncContext *s){
         av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
         
         s->current_picture.motion_val[0]= av_mallocz(size * 2 * sizeof(int16_t)); //FIXME
+        s->current_picture.motion_val[1]= av_mallocz(size * 2 * sizeof(int16_t));
     }
     
     if(s->avctx->debug&FF_DEBUG_ER){