diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-07-08 04:53:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-07-08 04:53:21 +0400 |
commit | bba833496586c7b44d1015f4b45b15b863aed476 (patch) | |
tree | f266d0102ab2c29279c18d8cf692b64a3bb9c46c /libavcodec/cabac.c | |
parent | 240ae82c51e1d798a93e201e5b34f3fade84f499 (diff) |
overread fix
Originally committed as revision 3294 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r-- | libavcodec/cabac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 2ae996a39d..9d56e23fc7 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -93,6 +93,7 @@ void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size){ 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); |