OSDN Git Service

minor speedup noticed by arpi
authorAlex Beregszaszi <alex@rtfs.hu>
Sun, 27 Oct 2002 19:01:00 +0000 (19:01 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sun, 27 Oct 2002 19:01:00 +0000 (19:01 +0000)
Originally committed as revision 1081 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mjpeg.c

index 1f63c95..f62891e 100644 (file)
 #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;