mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-03 10:27:45 +00:00
timecode: support >24h timecode.
This commit is contained in:
parent
f1db99166b
commit
ca1bae3983
2 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,7 @@ char *avpriv_timecode_to_string(char *buf, const struct ff_timecode *tc, unsigne
|
|||
ff = frame_num % fps;
|
||||
ss = frame_num / fps % 60;
|
||||
mm = frame_num / (fps*60) % 60;
|
||||
hh = frame_num / (fps*3600) % 24;
|
||||
hh = frame_num / (fps*3600);
|
||||
snprintf(buf, 16, "%s%02d:%02d:%02d%c%02d",
|
||||
neg ? "-" : "",
|
||||
hh, mm, ss, tc->drop ? ';' : ':', ff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue