Mercurial > mplayer.hg
comparison libass/ass.h @ 25613:f00333e3facf
Copy font data to ass_library instead of referencing demuxer-owned memory.
This fixes segfault when fonts are accessed after demuxer has been closed.
author | eugeni |
---|---|
date | Mon, 07 Jan 2008 14:02:06 +0000 |
parents | 3baf6a2283da |
children | aaebaf255b23 |
comparison
equal
deleted
inserted
replaced
25612:6bee6b0eef6c | 25613:f00333e3facf |
---|---|
194 * \param data_size data size | 194 * \param data_size data size |
195 */ | 195 */ |
196 void ass_add_font(ass_library_t* library, char* name, char* data, int data_size); | 196 void ass_add_font(ass_library_t* library, char* name, char* data, int data_size); |
197 | 197 |
198 /** | 198 /** |
199 * \brief Remove all fonts stored in ass_library object | |
200 */ | |
201 void ass_clear_fonts(ass_library_t* library); | |
202 | |
203 /** | |
199 * \brief Calculates timeshift from now to the start of some other subtitle event, depending on movement parameter | 204 * \brief Calculates timeshift from now to the start of some other subtitle event, depending on movement parameter |
200 * \param track subtitle track | 205 * \param track subtitle track |
201 * \param now current time, ms | 206 * \param now current time, ms |
202 * \param movement how many events to skip from the one currently displayed | 207 * \param movement how many events to skip from the one currently displayed |
203 * +2 means "the one after the next", -1 means "previous" | 208 * +2 means "the one after the next", -1 means "previous" |