Fix possible crash: negative values may no be passed to render_one_glyph

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20523 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-29 21:52:26 +00:00
parent 6d60c545d4
commit a755d9a831
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ static inline int get_height(int c,int h){
}
#ifdef HAVE_FREETYPE
#define render_txt(t) { char* p = t; while(*p) render_one_glyph(vo_font,*p++); }
#define render_txt(t) { unsigned char* p = t; while(*p) render_one_glyph(vo_font,*p++); }
#else
#define render_txt(t)
#endif