summaryrefslogtreecommitdiff
path: root/libavformat/grab.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-12-06 23:46:11 +0000
committerMåns Rullgård <mans@mansr.com>2006-12-06 23:46:11 +0000
commit8da9266ceaeb233a757d5ad8772bdf93601eec33 (patch)
treea549b588fbd30273b27aa1f7a4857f010f36a323 /libavformat/grab.c
parentcd107896911a1a2359b29f8041458a192631292f (diff)
use the standard INT64_C() macro for 64-bit constants
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/grab.c')
-rw-r--r--libavformat/grab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c
index 4e85772e5f..2b7c5502c6 100644
--- a/libavformat/grab.c
+++ b/libavformat/grab.c
@@ -321,16 +321,16 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
struct timespec ts;
/* Calculate the time of the next frame */
- s->time_frame += int64_t_C(1000000);
+ s->time_frame += INT64_C(1000000);
/* wait based on the frame rate */
for(;;) {
curtime = av_gettime();
delay = s->time_frame * s->frame_rate_base / s->frame_rate - curtime;
if (delay <= 0) {
- if (delay < int64_t_C(-1000000) * s->frame_rate_base / s->frame_rate) {
+ if (delay < INT64_C(-1000000) * s->frame_rate_base / s->frame_rate) {
/* printf("grabbing is %d frames late (dropping)\n", (int) -(delay / 16666)); */
- s->time_frame += int64_t_C(1000000);
+ s->time_frame += INT64_C(1000000);
}
break;
}