Revision 967be700 libavcodec/error_resilience.c

View differences:

libavcodec/error_resilience.c
673 673
    
674 674
    if(s->current_picture.motion_val[0] == NULL){
675 675
        int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2);
676
        Picture *pic= s->current_picture_ptr;
676 677
        
677 678
        av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
678
        
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));
679
            
680
        for(i=0; i<2; i++){
681
            pic->motion_val_base[i]= av_mallocz((size+1) * 2 * sizeof(uint16_t)); //FIXME size
682
            pic->motion_val[i]= pic->motion_val_base[i]+1;
683
        }
684
        pic->motion_subsample_log2= 3;
685
        s->current_picture= *s->current_picture_ptr;
681 686
    }
682 687
    
683 688
    if(s->avctx->debug&FF_DEBUG_ER){

Also available in: Unified diff