From ca1bae3983c6592efe4635e7e35a1f85833674b8 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Wed, 4 Jan 2012 17:30:03 +0100 Subject: timecode: support >24h timecode. --- libavcodec/timecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/timecode.c') diff --git a/libavcodec/timecode.c b/libavcodec/timecode.c index 8e2e599c21..2e0f4a489b 100644 --- a/libavcodec/timecode.c +++ b/libavcodec/timecode.c @@ -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); -- cgit v1.2.3