[SCM] libav/experimental: 10l (segfault fix)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:40:03 UTC 2013


The following commit has been merged in the experimental branch:
commit 6c08a05743691fb9eb6affc2651d7aa9c748ff7f
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Apr 22 20:56:29 2004 +0000

    10l (segfault fix)
    
    Originally committed as revision 3039 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 8baee8d..b7aeebd 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;
         }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list