diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-02 01:56:28 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-02 01:56:28 +0000 |
commit | 1ca2d5b055ed9b0e45b0f7e71b8833b66f222e49 (patch) | |
tree | 6999a1669f7ed83781a1cc66afa0db9abcd020df /libvo/font_load.c | |
parent | 2b96b208bf9c59dde029f25627997fa0db11a72f (diff) | |
download | mpv-1ca2d5b055ed9b0e45b0f7e71b8833b66f222e49.tar.bz2 mpv-1ca2d5b055ed9b0e45b0f7e71b8833b66f222e49.tar.xz |
.raw width>=65536 support by Georgi Georgiev <chutz@chubaka.homeip.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5929 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/font_load.c')
-rw-r--r-- | libvo/font_load.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c index 672123bb86..4a35a5eb65 100644 --- a/libvo/font_load.c +++ b/libvo/font_load.c @@ -22,6 +22,8 @@ raw_file* load_raw(char *name,int verbose){ raw->w=head[8]*256+head[9]; raw->h=head[10]*256+head[11]; raw->c=head[12]*256+head[13]; + if(raw->w == 0) // 2 bytes were not enough for the width... read 4 bytes from the end of the header + raw->w = ((head[28]*0x100 + head[29])*0x100 + head[30])*0x100 + head[31]; if(raw->c>256) return NULL; // too many colors!? if(verbose) printf("RAW: %s %d x %d, %d colors\n",name,raw->w,raw->h,raw->c); if(raw->c){ |