Commit 5ab748bc authored by al3x's avatar al3x

minor speedup noticed by arpi


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1081 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c6d9f930
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment