summaryrefslogtreecommitdiff
path: root/audio/xmms-wma/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'audio/xmms-wma/patches/patch-ac')
-rw-r--r--audio/xmms-wma/patches/patch-ac60
1 files changed, 60 insertions, 0 deletions
diff --git a/audio/xmms-wma/patches/patch-ac b/audio/xmms-wma/patches/patch-ac
new file mode 100644
index 00000000000..78286e5e7f3
--- /dev/null
+++ b/audio/xmms-wma/patches/patch-ac
@@ -0,0 +1,60 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/03/01 01:17:01 xtraeme Exp $
+
+--- ffmpeg-strip-wma/asf.c.orig Wed May 26 19:16:39 2004
++++ ffmpeg-strip-wma/asf.c Sat Dec 11 21:32:58 2004
+@@ -16,10 +16,13 @@
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
++
++#ifdef USE_ICONV
++#include <iconv.h>
++#endif
++
+ #include "avformat.h"
+ #include "avi.h"
+-//#include "mpegaudio.h"
+-#include <iconv.h>
+
+ #undef NDEBUG
+ #include <assert.h>
+@@ -830,6 +833,7 @@
+ return str;
+ }
+
++#ifdef USE_ICONV
+ static void tag_recode(char *before, int len)
+ {
+ int result;
+@@ -859,6 +863,7 @@
+ return;
+ return;
+ }
++#endif
+
+ static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size)
+ {
+@@ -868,12 +873,17 @@
+ q = buf;
+ lenz = len;
+ while (len > 0) {
+- c = get_byte(pb);
+- if ((q - buf) < buf_size-1)
+- *q++ = c;
+- len--;
++ c = get_byte(pb);
++ if ((q - buf) < buf_size - 1)
++ *q++ = c;
++ len--;
+ }
+- tag_recode(buf, lenz);
++
++#ifdef USE_ICONV
++ tag_recode(buf, lenz);
++#else
++ *q = '\0';
++#endif
+ }
+
+ static int asf_probe(AVProbeData *pd)
+