[FFmpeg-soc] [soc]: r3277 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Thu Aug 14 19:57:45 CEST 2008


Author: kostya
Date: Thu Aug 14 19:57:45 2008
New Revision: 3277

Log:
Copy second half of array into first with memcpy() instead of memmove()

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Thu Aug 14 19:57:45 2008
@@ -692,7 +692,7 @@ static int aac_encode_frame(AVCodecConte
         }
     }
     if(!avctx->frame_number){
-        memmove(s->samples, s->samples + 1024 * avctx->channels, 1024 * avctx->channels * sizeof(s->samples[0]));
+        memcpy(s->samples, s->samples + 1024 * avctx->channels, 1024 * avctx->channels * sizeof(s->samples[0]));
         return 0;
     }
 
@@ -735,7 +735,7 @@ static int aac_encode_frame(AVCodecConte
 
     if(!data)
         s->last_frame = 1;
-    memmove(s->samples, s->samples + 1024 * avctx->channels, 1024 * avctx->channels * sizeof(s->samples[0]));
+    memcpy(s->samples, s->samples + 1024 * avctx->channels, 1024 * avctx->channels * sizeof(s->samples[0]));
     return put_bits_count(&s->pb)>>3;
 }
 



More information about the FFmpeg-soc mailing list