[MPlayer-dev-eng] [PATCH] repost: array initialization fix infont_load.c

Sascha Sommer saschasommer at freenet.de
Fri Jun 18 15:53:03 CEST 2004


> This is my first submission attempt, so please advise me if I'm doing
> something wrong. I've read thru patches.txt and posted the same patch a
> week ago but I'm afraid I've made a mistake in encoding. Hope this time
> it works.
> 
> This small patch fixes array initialization bug in font_load.c.
> 
> Number of entries of 'font', 'start', and 'width' arrays are all 65536
> as defined in libvo/font_load.h but only the first 512 entries were
> being initialized in read_font_desc() function.
> 
> This makes problem in displaying 2-bytes characters. Fixed this by
> changing 512 to 65536 in two places. The only file affected is
> libvo/font_load.c and I didn't see any side effects of this change.
> 

Applied.

Sascha




More information about the MPlayer-dev-eng mailing list