diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2002-10-27 19:01:00 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2002-10-27 19:01:00 +0000 |
commit | 7b5c80f6bbaa38251b338c3732c99d9abd6d3763 (patch) | |
tree | 99d964152e6f575b031d9cad1c84c44f7d57f328 /libavcodec | |
parent | 97d4469a7455b6612dc2d255da09b72a74d39107 (diff) | |
download | ffmpeg-7b5c80f6bbaa38251b338c3732c99d9abd6d3763.tar.gz |
minor speedup noticed by arpi
Originally committed as revision 1081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpeg.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 1f63c95691..f62891e244 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -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 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, 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; |