Commit a13af9ae authored by Paul B Mahol's avatar Paul B Mahol

avformat/sccdec: only change duration for last subtitle

parent 13bffa79
...@@ -139,7 +139,7 @@ try_again: ...@@ -139,7 +139,7 @@ try_again:
sub->pos = current_pos; sub->pos = current_pos;
sub->pts = ts_start; sub->pts = ts_start;
sub->duration = FFMAX(1200, ts_end - ts_start); sub->duration = ts_end - ts_start;
memmove(line, line2, sizeof(line)); memmove(line, line2, sizeof(line));
current_pos = next_pos; current_pos = next_pos;
line2[0] = 0; line2[0] = 0;
...@@ -147,6 +147,7 @@ try_again: ...@@ -147,6 +147,7 @@ try_again:
if (line[0]) { if (line[0]) {
ts_start = ts_end; ts_start = ts_end;
ts_end += 1200;
goto try_again; goto try_again;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment