]> granicus.if.org Git - libass/commitdiff
Add \N at the end of each subtitle line when converting from subdata.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 29 Oct 2006 13:52:51 +0000 (13:52 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 29 Oct 2006 13:52:51 +0000 (13:52 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20511 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_mp.c

index 8fbffb46292e1f3b3d9b240151d7a23b93ae274a..9c4d0408c33b146732550a919f2c3dcedad3c13c 100644 (file)
@@ -166,9 +166,9 @@ int ass_process_subtitle(ass_track_t* track, subtitle* sub)
                p += snprintf(p, end - p, "{\\an%d}", sub->alignment);
 
        for (j = 0; j < sub->lines; ++j)
-               p += snprintf(p, end - p, "%s ", sub->text[j]);
+               p += snprintf(p, end - p, "%s\\N", sub->text[j]);
 
-       p--; // remove last ' '
+       p-=2; // remove last ' '
        *p = 0;
 
        if (check_duplicate_plaintext_event(track)) {