Mercurial > libavcodec.hg
comparison error_resilience.c @ 1952:2ede7cc1fe4e libavcodec
10l (segfault fix)
author | michael |
---|---|
date | Thu, 22 Apr 2004 20:56:29 +0000 |
parents | e2501e6e7ff7 |
children | 5ab35105671a |
comparison
equal
deleted
inserted
replaced
1951:2599b8444831 | 1952:2ede7cc1fe4e |
---|---|
676 Picture *pic= s->current_picture_ptr; | 676 Picture *pic= s->current_picture_ptr; |
677 | 677 |
678 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); | 678 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); |
679 | 679 |
680 for(i=0; i<2; i++){ | 680 for(i=0; i<2; i++){ |
681 pic->ref_index[i]= av_mallocz(size * sizeof(uint8_t)); | |
681 pic->motion_val_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t)); | 682 pic->motion_val_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t)); |
682 pic->motion_val[i]= pic->motion_val_base[i]+2; | 683 pic->motion_val[i]= pic->motion_val_base[i]+2; |
683 } | 684 } |
684 pic->motion_subsample_log2= 3; | 685 pic->motion_subsample_log2= 3; |
685 s->current_picture= *s->current_picture_ptr; | 686 s->current_picture= *s->current_picture_ptr; |