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

SungKwan Kang ksquarekr at yahoo.com
Fri Jun 11 06:56:42 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.

Many thanks,
ksquarekr

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer.font_load.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040610/37a377bf/attachment.txt>


More information about the MPlayer-dev-eng mailing list