Mercurial > libavcodec.hg
comparison error_resilience.c @ 1285:6e039762d5cb libavcodec
motion vector vissualization for mpeg1/2
mpeg1/2 cleanup/bugfix
error resilience bugfix
author | michaelni |
---|---|
date | Tue, 27 May 2003 12:31:03 +0000 |
parents | fea03d2c4946 |
children | f07e17427140 |
comparison
equal
deleted
inserted
replaced
1284:119c814aa9de | 1285:6e039762d5cb |
---|---|
731 int end_ok=1; | 731 int end_ok=1; |
732 | 732 |
733 for(i=s->mb_num-2; i>=s->mb_width+100; i--){ //FIXME +100 hack | 733 for(i=s->mb_num-2; i>=s->mb_width+100; i--){ //FIXME +100 hack |
734 const int mb_xy= s->mb_index2xy[i]; | 734 const int mb_xy= s->mb_index2xy[i]; |
735 int error1= s->error_status_table[mb_xy ]; | 735 int error1= s->error_status_table[mb_xy ]; |
736 int error2= s->error_status_table[mb_xy+1]; | 736 int error2= s->error_status_table[s->mb_index2xy[i+1]]; |
737 | 737 |
738 if(error1&VP_START) | 738 if(error1&VP_START) |
739 end_ok=1; | 739 end_ok=1; |
740 | 740 |
741 if( error2==(VP_START|DC_ERROR|AC_ERROR|MV_ERROR|AC_END|DC_END|MV_END) | 741 if( error2==(VP_START|DC_ERROR|AC_ERROR|MV_ERROR|AC_END|DC_END|MV_END) |