Mercurial > libavcodec.hg
diff cabac.c @ 2116:48d9f86fb047 libavcodec
overread fix
author | michael |
---|---|
date | Thu, 08 Jul 2004 00:53:21 +0000 |
parents | f65d87bfdd5a |
children | 1c39d9786efd |
line wrap: on
line diff
--- a/cabac.c Tue Jul 06 12:27:36 2004 +0000 +++ b/cabac.c Thu Jul 08 00:53:21 2004 +0000 @@ -93,6 +93,7 @@ void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){ c->bytestream_start= c->bytestream= buf; + c->bytestream_end= buf + buf_size; c->low= *c->bytestream++; c->low= (c->low<<9) + ((*c->bytestream++)<<1);