Revision 3732c483 libavcodec/error_resilience.c

View differences:

libavcodec/error_resilience.c
381 381
        fixed[mb_xy]= f;
382 382
        if(f==MV_FROZEN)
383 383
            num_avail++;
384
        else if(s->last_picture.data[0]){
385
            const int mb_y= mb_xy / s->mb_stride;
386
            const int mb_x= mb_xy % s->mb_stride;
387
            const int mot_index= (mb_x + mb_y*mot_stride) * mot_step;
388
            s->current_picture.motion_val[0][mot_index][0]= s->last_picture.motion_val[0][mot_index][0];
389
            s->current_picture.motion_val[0][mot_index][1]= s->last_picture.motion_val[0][mot_index][1];
390
            s->current_picture.ref_index[0][4*mb_xy]      = s->last_picture.ref_index[0][4*mb_xy];
391
        }
384 392
    }
385 393

  
386 394
    if((!(s->avctx->error_concealment&FF_EC_GUESS_MVS)) || num_avail <= mb_width/2){

Also available in: Unified diff