mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 04:02:06 +00:00
Avoid "pointer targets differ in signedness" warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21631 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
db088e936d
commit
2875decdc4
@ -78,7 +78,7 @@ ass_font_t* ass_font_new(ass_library_t* library, FT_Library ftlibrary, void* fc_
|
||||
|
||||
mem_idx = find_font(library, path);
|
||||
if (mem_idx >= 0) {
|
||||
error = FT_New_Memory_Face(ftlibrary, library->fontdata[mem_idx].data,
|
||||
error = FT_New_Memory_Face(ftlibrary, (unsigned char*)library->fontdata[mem_idx].data,
|
||||
library->fontdata[mem_idx].size, 0, &face);
|
||||
if (error) {
|
||||
mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningMemoryFont, path);
|
||||
|
@ -276,13 +276,13 @@ static void process_fontdata(fc_instance_t* priv, ass_library_t* library, FT_Lib
|
||||
|
||||
#else // (FC_VERSION >= 20402)
|
||||
|
||||
rc = FT_New_Memory_Face(ftlibrary, data, data_size, 0, &face);
|
||||
rc = FT_New_Memory_Face(ftlibrary, (unsigned char*)data, data_size, 0, &face);
|
||||
if (rc) {
|
||||
mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningMemoryFont, name);
|
||||
return;
|
||||
}
|
||||
|
||||
pattern = FcFreeTypeQueryFace(face, name, 0, FcConfigGetBlanks(priv->config));
|
||||
pattern = FcFreeTypeQueryFace(face, (unsigned char*)name, 0, FcConfigGetBlanks(priv->config));
|
||||
if (!pattern) {
|
||||
mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FunctionCallFailed, "FcFreeTypeQueryFace");
|
||||
FT_Done_Face(face);
|
||||
|
Loading…
Reference in New Issue
Block a user