aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-22 20:56:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-22 20:56:29 +0000
commit6c08a05743691fb9eb6affc2651d7aa9c748ff7f (patch)
tree18ed26265013a65571272c904eeacc6f81ebd511
parent9007f51460bfb78813f25b37d3484c7b40ceb0d1 (diff)
downloadffmpeg-6c08a05743691fb9eb6affc2651d7aa9c748ff7f.tar.gz
10l (segfault fix)
Originally committed as revision 3039 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/error_resilience.c1
1 files changed, 1 insertions, 0 deletions
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;
}