Mercurial > mplayer.hg
comparison mplayer.c @ 30815:1878922f2ce0
Use int64_t instead of long for variable containing current playback time.
author | reimar |
---|---|
date | Sun, 07 Mar 2010 09:13:18 +0000 |
parents | 16bb5e90205f |
children | 977fd535cc9d |
comparison
equal
deleted
inserted
replaced
30814:9257c04720ed | 30815:1878922f2ce0 |
---|---|
1209 * \param pos position of terminating 0 in buf | 1209 * \param pos position of terminating 0 in buf |
1210 * \param len maximum number of characters in buf, not including terminating 0 | 1210 * \param len maximum number of characters in buf, not including terminating 0 |
1211 * \param time time value to convert/append | 1211 * \param time time value to convert/append |
1212 */ | 1212 */ |
1213 static void sadd_hhmmssf(char *buf, unsigned *pos, int len, float time) { | 1213 static void sadd_hhmmssf(char *buf, unsigned *pos, int len, float time) { |
1214 long tenths = 10 * time; | 1214 int64_t tenths = 10 * time; |
1215 int f1 = tenths % 10; | 1215 int f1 = tenths % 10; |
1216 int ss = (tenths / 10) % 60; | 1216 int ss = (tenths / 10) % 60; |
1217 int mm = (tenths / 600) % 60; | 1217 int mm = (tenths / 600) % 60; |
1218 int hh = tenths / 36000; | 1218 int hh = tenths / 36000; |
1219 if (time <= 0) { | 1219 if (time <= 0) { |