comparison msmpeg4.c @ 1144:21c85c4ab2f0 libavcodec

error resilience cleanup (its faster too...)
author michaelni
date Thu, 20 Mar 2003 01:00:57 +0000
parents 77ccf7fe3bd0
children 0951691c4225
comparison
equal deleted inserted replaced
1143:a4facfd78935 1144:21c85c4ab2f0
1484 1484
1485 static int msmpeg4v12_decode_mb(MpegEncContext *s, DCTELEM block[6][64]) 1485 static int msmpeg4v12_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
1486 { 1486 {
1487 int cbp, code, i; 1487 int cbp, code, i;
1488 1488
1489 s->error_status_table[s->mb_x + s->mb_y*s->mb_width]= 0;
1490
1491 if (s->pict_type == P_TYPE) { 1489 if (s->pict_type == P_TYPE) {
1492 if (s->use_skip_mb_code) { 1490 if (s->use_skip_mb_code) {
1493 if (get_bits1(&s->gb)) { 1491 if (get_bits1(&s->gb)) {
1494 /* skip mb */ 1492 /* skip mb */
1495 s->mb_intra = 0; 1493 s->mb_intra = 0;
1579 printf("\n"); 1577 printf("\n");
1580 if(s->mb_y==0) printf("\n"); 1578 if(s->mb_y==0) printf("\n");
1581 } 1579 }
1582 #endif 1580 #endif
1583 1581
1584 s->error_status_table[s->mb_x + s->mb_y*s->mb_width]= 0;
1585
1586 if (s->pict_type == P_TYPE) { 1582 if (s->pict_type == P_TYPE) {
1587 set_stat(ST_INTER_MB); 1583 set_stat(ST_INTER_MB);
1588 if (s->use_skip_mb_code) { 1584 if (s->use_skip_mb_code) {
1589 if (get_bits1(&s->gb)) { 1585 if (get_bits1(&s->gb)) {
1590 /* skip mb */ 1586 /* skip mb */