assert(dsize <= size / 4 * 3 + 2);
if (track->library->extract_fonts)
- ass_process_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
+ ass_add_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
error_decode_font:
if (buf) free(buf);
}
/**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
* \param name attachment name
* \param data binary font data
* \param data_size data size
*/
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size)
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size)
{
char buf[1000];
FILE* fp = 0;
int ass_read_styles(ass_track_t* track, char* fname, char* codepage);
/**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
* \param name attachment name
* \param data binary font data
* \param data_size data size
*/
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size);
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size);
/**
* \brief Calculates timeshift from now to the start of some other subtitle event, depending on movement parameter