diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-12-23 22:47:27 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-12-23 22:47:27 +0100 |
commit | a13af9aee14f271298784d222d3dad38e7ccf43b (patch) | |
tree | def43605a5319fcb34a40312d59b000273fb6b37 | |
parent | 13bffa79698e8bfe08634a1aefa9650dc74a58a2 (diff) | |
download | ffmpeg-a13af9aee14f271298784d222d3dad38e7ccf43b.tar.gz |
avformat/sccdec: only change duration for last subtitle
-rw-r--r-- | libavformat/sccdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c index 0cf09c458a..769adc7dd9 100644 --- a/libavformat/sccdec.c +++ b/libavformat/sccdec.c @@ -139,7 +139,7 @@ try_again: sub->pos = current_pos; sub->pts = ts_start; - sub->duration = FFMAX(1200, ts_end - ts_start); + sub->duration = ts_end - ts_start; memmove(line, line2, sizeof(line)); current_pos = next_pos; line2[0] = 0; @@ -147,6 +147,7 @@ try_again: if (line[0]) { ts_start = ts_end; + ts_end += 1200; goto try_again; } |