comparison error_resilience.c @ 1827:fcbf31baa1af libavcodec

multithreaded mpeg2 decoding
author michael
date Mon, 23 Feb 2004 20:56:56 +0000
parents 07a484280a82
children e2501e6e7ff7
comparison
equal deleted inserted replaced
1826:5fb6572ca817 1827:fcbf31baa1af
650 s->error_status_table[end_xy] |= status; 650 s->error_status_table[end_xy] |= status;
651 } 651 }
652 652
653 s->error_status_table[start_xy] |= VP_START; 653 s->error_status_table[start_xy] |= VP_START;
654 654
655 if(start_xy > 0){ 655 if(start_xy > 0 && s->avctx->thread_count <= 1){
656 int prev_status= s->error_status_table[ s->mb_index2xy[start_i - 1] ]; 656 int prev_status= s->error_status_table[ s->mb_index2xy[start_i - 1] ];
657 657
658 prev_status &= ~ VP_START; 658 prev_status &= ~ VP_START;
659 if(prev_status != (MV_END|DC_END|AC_END)) s->error_count= INT_MAX; 659 if(prev_status != (MV_END|DC_END|AC_END)) s->error_count= INT_MAX;
660 } 660 }