Mercurial > libavcodec.hg
changeset 777:da879983a88f libavcodec
minor speedup noticed by arpi
author | al3x |
---|---|
date | Sun, 27 Oct 2002 19:01:00 +0000 |
parents | 1c68acb163e2 |
children | 6f24d6388750 |
files | mjpeg.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpeg.c Sun Oct 27 18:03:42 2002 +0000 +++ b/mjpeg.c Sun Oct 27 19:01:00 2002 +0000 @@ -25,10 +25,6 @@ #include "dsputil.h" #include "mpegvideo.h" -#ifdef USE_FASTMEMCPY -#include "fastmemcpy.h" -#endif - /* use two quantizer tables (one for luminance and one for chrominance) */ /* not yet working */ #undef TWOMATRIXES @@ -1299,10 +1295,10 @@ break; } } + init_get_bits(&s->gb, s->buffer, s->buffer_size); } else - memcpy(s->buffer, buf_ptr, buf_end - buf_ptr); - init_get_bits(&s->gb, s->buffer, s->buffer_size); + init_get_bits(&s->gb, buf_ptr, buf_end - buf_ptr); s->start_code = start_code;