FreeBSD Bugzilla – Attachment 44522 Details for
Bug 68907
[ maintainer ] audio/xmms-wma: remove iconv support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.21 KB, created by
Roman Bogorodskiy
on 2004-07-11 04:10:13 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Roman Bogorodskiy
Created:
2004-07-11 04:10:13 UTC
Size:
1.21 KB
patch
obsolete
>diff -ruN xmms-wma.orig/files/patch-ffmpeg-strip-wma::asf.c xmms-wma/files/patch-ffmpeg-strip-wma::asf.c >--- xmms-wma.orig/files/patch-ffmpeg-strip-wma::asf.c Thu Jan 1 03:00:00 1970 >+++ xmms-wma/files/patch-ffmpeg-strip-wma::asf.c Sun Jul 11 06:56:43 2004 >@@ -0,0 +1,50 @@ >+--- ffmpeg-strip-wma/asf.c.orig Sun Jul 11 06:51:15 2004 >++++ ffmpeg-strip-wma/asf.c Sun Jul 11 06:53:34 2004 >+@@ -18,8 +18,6 @@ >+ */ >+ #include "avformat.h" >+ #include "avi.h" >+-//#include "mpegaudio.h" >+-#include <iconv.h> >+ >+ #undef NDEBUG >+ #include <assert.h> >+@@ -830,6 +828,7 @@ >+ return str; >+ } >+ >++/* >+ static void tag_recode(char *before, int len) >+ { >+ int result; >+@@ -859,21 +858,22 @@ >+ return; >+ return; >+ } >++*/ >+ >+ static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size) >+ { >+- int c, lenz; >++ int c; >+ char *q; >+ >+ q = buf; >+- lenz = len; >+ while (len > 0) { >+- c = get_byte(pb); >+- if ((q - buf) < buf_size-1) >+- *q++ = c; >+- len--; >+- } >+- tag_recode(buf, lenz); >++ c = get_le16(pb); >++ if ((q - buf) < buf_size - 1) >++ *q++ = c; >++ len-=2; >++ } >++ >++ *q = '\0'; >+ } >+ >+ static int asf_probe(AVProbeData *pd)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68907
: 44522