# HG changeset patch # User michael # Date 1268531551 0 # Node ID 5330f17dc76955096358da3bdd81a54cbecbff6e # Parent b16c5c5705dfbdc4e39917b1508ee93da115ffa4 Make sure all mvs of a mb are set in the error concealment code. diff -r b16c5c5705df -r 5330f17dc769 error_resilience.c --- a/error_resilience.c Sun Mar 14 00:42:26 2010 +0000 +++ b/error_resilience.c Sun Mar 14 01:52:31 2010 +0000 @@ -548,9 +548,14 @@ } } score_sum+= best_score; -//FIXME no need to set s->current_picture.motion_val[0][mot_index][0] explicit - s->current_picture.motion_val[0][mot_index][0]= s->mv[0][0][0]= mv_predictor[best_pred][0]; - s->current_picture.motion_val[0][mot_index][1]= s->mv[0][0][1]= mv_predictor[best_pred][1]; + s->mv[0][0][0]= mv_predictor[best_pred][0]; + s->mv[0][0][1]= mv_predictor[best_pred][1]; + + for(i=0; icurrent_picture.motion_val[0][mot_index+i+j*mot_stride][0]= s->mv[0][0][0]; + s->current_picture.motion_val[0][mot_index+i+j*mot_stride][1]= s->mv[0][0][1]; + } decode_mb(s);