[MPlayer-dev-eng] [Patch] libmpdemux/asf_mmst_streaming.c: fixed mms url encoding with multibyte characters

Attila Kinali kinali at gmx.net
Wed Oct 29 14:27:13 CET 2003


On Sun, 5 Oct 2003 01:06:57 +0800
Wang WenRui <wangwr at mail.ustc.edu.cn> wrote:

> Hi,
> 
>   Current mplayer (mine is mplayer-1.0-pre1cvs20031001) cannot play mms
>   stream with multibyte characters in the url.
> 
>   There is a bug in string_utf16() of libmpdemux/asf_mmst_streaming.c:
>   the url encoding code is written for single-byte character only. It
>   just fill a zero byte between every two adjacent bytes of the url
>   string. This is wrong when the url string contains multi-byte
>   characters.
> 
>   My patch is in the attachment, and has been tested working. It uses
>   iconv() to convert the url's encoding to utf-16 correctly. So can this
>   patch be accepted and commit into CVS?


If there are no objections, i'm going to commit this.


			Attila Kinali

-- 
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
			-- reeler in +kaosu



More information about the MPlayer-dev-eng mailing list