Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/h264.c Sat Oct 07 15:30:46 2006 +0000 +++ b/h264.c Sat Oct 07 15:44:14 2006 +0000 @@ -7420,7 +7420,7 @@ } eos = get_cabac_terminate( &h->cabac ); - if( ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 1) { + if( ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 2) { 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); 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); return -1;
