libspark/libeplayer: rudimentary subtitle support, probably unstable

This commit is contained in:
martii
2012-11-04 15:39:48 +01:00
parent 2f886cae89
commit aa0681a555
5 changed files with 144 additions and 1 deletions

View File

@@ -36,6 +36,9 @@ Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
static inline unsigned char* text_to_ass(char *text, long long int pts, double duration)
{
char buf[1024];
#ifdef MARTII
unsigned
#endif
int x,pos=0;
for(x=0;x<strlen(text);x++){
if(text[x]=='\n'){