diff options
author | rcombs <rcombs@rcombs.me> | 2020-06-12 00:36:55 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2020-07-05 21:49:20 +0300 |
commit | 82ae68b9bc7cfba9a633444c4b7fdabf1d3a7f6c (patch) | |
tree | d1a4cf88f71d1c8ce0c8f10e47b3c654c1e7d384 /profile/profile.c | |
parent | 9b9424d353b062572354a252e108b461c70bda5c (diff) | |
download | libass-82ae68b9bc7cfba9a633444c4b7fdabf1d3a7f6c.tar.bz2 libass-82ae68b9bc7cfba9a633444c4b7fdabf1d3a7f6c.tar.xz |
profile: Document end time better
[
Oneric <oneric@oneric.de>:
This commit was already present in the pr adding profile.c
(#11, 31 Dec 2013, by rcombs <rcombs@rcombs.me>)
but seems to have been forgotten.
Adjusted to apply on current version.
]
Diffstat (limited to 'profile/profile.c')
-rw-r--r-- | profile/profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/profile/profile.c b/profile/profile.c index 4fc1adec..e7f64f5e 100644 --- a/profile/profile.c +++ b/profile/profile.c @@ -66,13 +66,13 @@ int main(int argc, char *argv[]) const int frame_h = 720; if (argc < 5) { - printf("usage: %s <subtitle file> <start time> <fps> <time to render>\n", argv[0]); + printf("usage: %s <subtitle file> <start time> <fps> <end time>\n", argv[0]); exit(1); } char *subfile = argv[1]; double tm = strtod(argv[2], 0); double fps = strtod(argv[3], 0); - double time = strtod(argv[4], 0); + double end_time = strtod(argv[4], 0); if (fps == 0) { printf("fps cannot equal 0\n"); @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) exit(1); } - while (tm < time) { + while (tm < end_time) { ass_render_frame(ass_renderer, track, (int) (tm * 1000), NULL); tm += 1 / fps; } |