From 6c08a05743691fb9eb6affc2651d7aa9c748ff7f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Apr 2004 20:56:29 +0000 Subject: [PATCH] 10l (segfault fix) Originally committed as revision 3039 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/error_resilience.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 8baee8d9e3..b7aeebddfc 100644 --- a/libavcodec/error_resilience.c +++ b/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"); 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; }