64 if(last && !memcmp(last,
"[Events]", 8))
100 av_log(s,
AV_LOG_DEBUG,
"wrote %d ASS lines, cached dialogues: %d, waiting for event id %d\n",
130 prev->
next = dialogue;
131 dialogue->
prev = prev;
137 next->
prev = dialogue;
138 dialogue->
next = next;
153 int hh1, mm1, ss1, ms1;
154 int hh2, mm2, ss2, ms2;
167 layer = strtol(p, &p, 10);
170 hh1 = (int)(start / 360000); mm1 = (int)(start / 6000) % 60;
171 hh2 = (int)(end / 360000); mm2 = (int)(end / 6000) % 60;
172 ss1 = (int)(start / 100) % 60; ms1 = (int)(start % 100);
173 ss2 = (int)(end / 100) % 60; ms2 = (int)(end % 100);
174 if (hh1 > 9) hh1 = 9, mm1 = 59, ss1 = 59, ms1 = 99;
175 if (hh2 > 9) hh2 = 9, mm2 = 59, ss2 = 59, ms2 = 99;
177 dialogue->
line =
av_asprintf(
"%ld,%d:%02d:%02d.%02d,%d:%02d:%02d.%02d,%s",
178 layer, hh1, mm1, ss1, ms1, hh2, mm2, ss2, ms2, p);
179 if (!dialogue->
line) {
207 .mime_type =
"text/x-ssa",
208 .extensions =
"ass,ssa",