libspark/libeplayer: rudimentary subtitle support, probably unstable

This commit is contained in:
martii
2012-11-04 15:39:48 +01:00
committed by Stefan Seyfried
parent 1cc9619c49
commit f0446eeeb2
3 changed files with 50 additions and 0 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'){