avoid using corrupted font descriptions patch by Daniel von Dincklage <danielvd+mpl@cs.colorado.edu>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12794 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-07-11 12:42:19 +00:00
parent 2f212bafee
commit 0a33aed66e
1 changed files with 9 additions and 0 deletions

View File

@ -245,10 +245,19 @@ while(fgets(sor,1020,f)){
}
}
printf("Syntax error in font desc: %s\n",sor);
free(desc);
fclose(f);
return NULL;
}
fclose(f);
if (first == 1) {
printf("%s is empty or a directory, ignoring\n", fname);
free(desc);
return NULL;
}
//printf("font: pos of U = %d\n",desc->start[218]);
for(i=0;i<=fontdb;i++){