comparison h264.c @ 3948:3edbf131ee44 libavcodec

refill cabac variables in 16bit steps, 3% faster get_cabac()
author michael
date Sat, 07 Oct 2006 15:44:14 +0000
parents c8c591fe26f8
children 00a12ef7d800
comparison
equal deleted inserted replaced
3947:c8c591fe26f8 3948:3edbf131ee44
7418 if(ret>=0) hl_decode_mb(h); 7418 if(ret>=0) hl_decode_mb(h);
7419 s->mb_y--; 7419 s->mb_y--;
7420 } 7420 }
7421 eos = get_cabac_terminate( &h->cabac ); 7421 eos = get_cabac_terminate( &h->cabac );
7422 7422
7423 if( ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 1) { 7423 if( ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 2) {
7424 av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d, bytestream (%d)\n", s->mb_x, s->mb_y, h->cabac.bytestream_end - h->cabac.bytestream); 7424 av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d, bytestream (%d)\n", s->mb_x, s->mb_y, h->cabac.bytestream_end - h->cabac.bytestream);
7425 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, (AC_ERROR|DC_ERROR|MV_ERROR)&part_mask); 7425 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, (AC_ERROR|DC_ERROR|MV_ERROR)&part_mask);
7426 return -1; 7426 return -1;
7427 } 7427 }
7428 7428