summaryrefslogtreecommitdiff
path: root/audio/liba52-devel/files/patch-resample.c
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-12 18:47:49 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-12 18:47:49 +0000
commit6a48d192957183c2b1dd1cba26c802bc7b27c58b (patch)
tree376122b060409a0ec0ddab5935e5c2dfa8b99a0b /audio/liba52-devel/files/patch-resample.c
parent1) Fix dvd information parsing by using the ports internally supplied (diff)
- 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
Diffstat (limited to 'audio/liba52-devel/files/patch-resample.c')
-rw-r--r--audio/liba52-devel/files/patch-resample.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/liba52-devel/files/patch-resample.c b/audio/liba52-devel/files/patch-resample.c
new file mode 100644
index 000000000000..dc378c959535
--- /dev/null
+++ b/audio/liba52-devel/files/patch-resample.c
@@ -0,0 +1,38 @@
+--- 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;
+ }