Mercurial > mplayer.hg
view libvo/vesa_lvo.h @ 11350:007ec48cf146
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?
patch by Wang WenRui <wangwr@mail.ustc.edu.cn>
author | attila |
---|---|
date | Sat, 01 Nov 2003 14:43:28 +0000 |
parents | 56faed773768 |
children | 046918174c25 |
line wrap: on
line source
/* * vesa_lvo.c * * Copyright (C) Nick Kurshev <nickols_k@mail.ru> - Oct 2001 * * You can redistribute this file under terms and conditions * of GNU General Public licence v2. * * This file contains vo_vesa interface to Linux Video Overlay. */ #ifndef __VESA_LVO_INCLUDED #define __VESA_LVO_INCLUDED int vlvo_preinit( const char *drvname); int vlvo_init(unsigned src_width,unsigned src_height, unsigned x_org,unsigned y_org,unsigned dst_width, unsigned dst_height,unsigned format,unsigned dest_bpp); void vlvo_term( void ); uint32_t vlvo_query_info(unsigned format); uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y); uint32_t vlvo_draw_frame(uint8_t *src[]); void vlvo_flip_page(void); void vlvo_draw_osd(void); #endif