Mercurial > libavcodec.hg
changeset 1560:07dac732074a libavcodec
10l
author | alex |
---|---|
date | Wed, 22 Oct 2003 22:12:25 +0000 |
parents | c4e19184eff0 |
children | aa71c7981523 |
files | mjpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpeg.c Wed Oct 22 22:10:22 2003 +0000 +++ b/mjpeg.c Wed Oct 22 22:12:25 2003 +0000 @@ -2148,7 +2148,7 @@ s->mb_width = (s->width * s->h_max * 8 -1) / (s->h_max * 8); s->mb_height = (s->height * s->v_max * 8 -1) / (s->v_max * 8); - init_get_bits(&s->gb, buf, buf_size*8); + init_get_bits(&s->gb, buf+14, (buf_size-14)*8); return mjpeg_decode_scan(s); #endif