diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-05-26 22:36:31 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-05-29 21:33:28 +0200 |
commit | d51e08bb89f7a93f471bc14ad00c14ac986cfcf0 (patch) | |
tree | 8675f875aad6e370b73ef62e0abcb02bd5d989d9 /libavcodec/srtdec.c | |
parent | e7cb161515fc9fb6d30d1681d64d9ba7ad737a4e (diff) | |
download | ffmpeg-d51e08bb89f7a93f471bc14ad00c14ac986cfcf0.tar.gz |
lavc: switch from ts_end to duration in ff_ass_add_rect.
Make possible a end-to-presentation duration.
Diffstat (limited to 'libavcodec/srtdec.c')
-rw-r--r-- | libavcodec/srtdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c index b6f2dade0c..ed6909bcca 100644 --- a/libavcodec/srtdec.c +++ b/libavcodec/srtdec.c @@ -222,7 +222,7 @@ static int srt_decode_frame(AVCodecContext *avctx, break; ptr = srt_to_ass(avctx, buffer, buffer+sizeof(buffer), ptr, x1, y1, x2, y2); - ff_ass_add_rect(sub, buffer, ts_start, ts_end, 0); + ff_ass_add_rect(sub, buffer, ts_start, ts_end-ts_start, 0); } *got_sub_ptr = sub->num_rects > 0; |