comparison error_resilience.c @ 1704:8bccf5eda14b libavcodec

10l (segfault fix)
author michael
date Sun, 28 Dec 2003 11:35:54 +0000
parents 30746f429df6
children dea5b2946999
comparison
equal deleted inserted replaced
1703:6797179a0649 1704:8bccf5eda14b
675 int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2); 675 int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2);
676 676
677 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); 677 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
678 678
679 s->current_picture.motion_val[0]= av_mallocz(size * 2 * sizeof(int16_t)); //FIXME 679 s->current_picture.motion_val[0]= av_mallocz(size * 2 * sizeof(int16_t)); //FIXME
680 s->current_picture.motion_val[1]= av_mallocz(size * 2 * sizeof(int16_t));
680 } 681 }
681 682
682 if(s->avctx->debug&FF_DEBUG_ER){ 683 if(s->avctx->debug&FF_DEBUG_ER){
683 for(mb_y=0; mb_y<s->mb_height; mb_y++){ 684 for(mb_y=0; mb_y<s->mb_height; mb_y++){
684 for(mb_x=0; mb_x<s->mb_width; mb_x++){ 685 for(mb_x=0; mb_x<s->mb_width; mb_x++){