changeset 1952:2ede7cc1fe4e libavcodec

10l (segfault fix)
author michael
date Thu, 22 Apr 2004 20:56:29 +0000
parents 2599b8444831
children 98d46737196b
files error_resilience.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/error_resilience.c	Thu Apr 22 13:21:59 2004 +0000
+++ b/error_resilience.c	Thu Apr 22 20:56:29 2004 +0000
@@ -678,6 +678,7 @@
         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;
         }