mirror of https://github.com/mpv-player/mpv
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:
parent
6d60c545d4
commit
a755d9a831
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue