提交 7b5c80f6 编写于 作者: A Alex Beregszaszi

minor speedup noticed by arpi

Originally committed as revision 1081 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 97d4469a
...@@ -25,10 +25,6 @@ ...@@ -25,10 +25,6 @@
#include "dsputil.h" #include "dsputil.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#ifdef USE_FASTMEMCPY
#include "fastmemcpy.h"
#endif
/* use two quantizer tables (one for luminance and one for chrominance) */ /* use two quantizer tables (one for luminance and one for chrominance) */
/* not yet working */ /* not yet working */
#undef TWOMATRIXES #undef TWOMATRIXES
...@@ -1299,10 +1295,10 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -1299,10 +1295,10 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
break; break;
} }
} }
init_get_bits(&s->gb, s->buffer, s->buffer_size);
} }
else else
memcpy(s->buffer, buf_ptr, buf_end - buf_ptr); init_get_bits(&s->gb, buf_ptr, buf_end - buf_ptr);
init_get_bits(&s->gb, s->buffer, s->buffer_size);
s->start_code = start_code; s->start_code = start_code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册