mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +00:00
a valid ASS line contains 9 ',' before actual text
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27526 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
237ae0ac8a
commit
6e6692a4ff
@ -145,7 +145,7 @@ void update_subtitles(sh_video_t *sh_video, demux_stream_t *d_dvdsub, int reset)
|
||||
if (type == 'a') { // ssa/ass subs without libass => convert to plaintext
|
||||
int i;
|
||||
unsigned char* p = packet;
|
||||
for (i=0; i < 8 && *p != '\0'; p++)
|
||||
for (i=0; i < 9 && *p != '\0'; p++)
|
||||
if (*p == ',')
|
||||
i++;
|
||||
if (*p == '\0') /* Broken line? */
|
||||
|
Loading…
Reference in New Issue
Block a user