freebsd-ports/audio/liba52-devel/files/patch-resample.c
Mario Sergio Fujikawa Ferreira 6a48d19295 - After repo copy from audio/liba52: update to ffmpeg snapshot
2005112800
- This port liba52-devel will provide the very latest liba52 from
  multimedia/ffmpeg-devel port distfiles with all the latest
  optimizations. Unfortunaly, there has been some API changes which
  prevent it from being an update to the standard audio/liba52 port.

Repo copied by:	marcus
2005-12-12 18:47:49 +00:00

38 lines
1,009 B
C

--- resample.c.orig Mon Nov 3 16:06:32 2003
+++ resample.c Sun Dec 11 03:27:20 2005
@@ -6,7 +6,6 @@
#include "a52.h"
#include "mm_accel.h"
-#include "config.h"
#include "../libpostproc/mangle.h"
int (* a52_resample) (float * _f, int16_t * s16)=NULL;
@@ -14,6 +13,7 @@
#include "resample_c.c"
#ifdef ARCH_X86
+#include "../../libavutil/common.h"
#include "resample_mmx.c"
#endif
@@ -24,7 +24,6 @@
if(mm_accel&MM_ACCEL_X86_MMX){
tmp=a52_resample_MMX(flags,chans);
if(tmp){
- if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "Using MMX optimized resampler\n");
a52_resample=tmp;
return tmp;
}
@@ -33,11 +32,9 @@
tmp=a52_resample_C(flags,chans);
if(tmp){
- if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "No accelerated resampler found\n");
a52_resample=tmp;
return tmp;
}
- av_log(NULL, AV_LOG_ERROR, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!\n", flags, chans);
return NULL;
}