summaryrefslogtreecommitdiffstats
path: root/mpcommon.c
diff options
context:
space:
mode:
authoraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-04 23:36:17 +0000
committeraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-04 23:36:17 +0000
commit6e6692a4ff4a49c80b75f12fa30f9f36940b3f76 (patch)
tree78b6d8653d239da99b2f8f7711caa4bd318197b9 /mpcommon.c
parent237ae0ac8a4b62585c529defb1e20f360e8f1ed0 (diff)
downloadmpv-6e6692a4ff4a49c80b75f12fa30f9f36940b3f76.tar.bz2
mpv-6e6692a4ff4a49c80b75f12fa30f9f36940b3f76.tar.xz
a valid ASS line contains 9 ',' before actual text
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27526 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mpcommon.c')
-rw-r--r--mpcommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpcommon.c b/mpcommon.c
index 79af866cab..bf78b50fe8 100644
--- a/mpcommon.c
+++ b/mpcommon.c
@@ -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? */