diff mencoder.c @ 23458:973e53dc7df5

Do not use fast_memcpy for small size copy, esp. when the size is constant
author reimar
date Tue, 05 Jun 2007 15:09:49 +0000
parents a124f3abc1ec
children 44746cbd4e5b
line wrap: on
line diff
--- a/mencoder.c	Tue Jun 05 14:27:54 2007 +0000
+++ b/mencoder.c	Tue Jun 05 15:09:49 2007 +0000
@@ -771,7 +771,7 @@
 	if (!curfile) {
 		if (sh_video->bih) {
 			mux_v->bih=malloc(sh_video->bih->biSize);
-			fast_memcpy(mux_v->bih, sh_video->bih, sh_video->bih->biSize);
+			memcpy(mux_v->bih, sh_video->bih, sh_video->bih->biSize);
 		}
     else
     {
@@ -941,7 +941,7 @@
     }
     if (sh_audio->wf){
 	mux_a->wf=malloc(sizeof(WAVEFORMATEX) + sh_audio->wf->cbSize);
-	fast_memcpy(mux_a->wf, sh_audio->wf, sizeof(WAVEFORMATEX) + sh_audio->wf->cbSize);
+	memcpy(mux_a->wf, sh_audio->wf, sizeof(WAVEFORMATEX) + sh_audio->wf->cbSize);
 	if(!sh_audio->i_bps) sh_audio->i_bps=mux_a->wf->nAvgBytesPerSec;
     } else {
 	mux_a->wf = malloc(sizeof(WAVEFORMATEX));