aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-07 15:44:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-07 15:44:14 +0000
commit5659b509c74ccee0f4abfe197d4dd269cfe21afd (patch)
treeb0a7036eb640197da47ff26fdc3a2d5a3b4fe08c /libavcodec/h264.c
parentd026b45e73996650ff28ee5a8541ef59d2c421b1 (diff)
downloadffmpeg-5659b509c74ccee0f4abfe197d4dd269cfe21afd.tar.gz
refill cabac variables in 16bit steps, 3% faster get_cabac()
Originally committed as revision 6578 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 0b5e7923ed..6a308a6a8f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7420,7 +7420,7 @@ static int decode_slice(H264Context *h){
}
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;