Mercurial > libavformat.hg
changeset 1557:3879e6def12f libavformat
use standard INT64_MAX instead of MAXINT64 (and MIN)
author | mru |
---|---|
date | Thu, 07 Dec 2006 00:47:37 +0000 |
parents | 65b7b3ff4ed7 |
children | 24f6e902d77a |
files | avformat.h utils.c |
diffstat | 2 files changed, 4 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/avformat.h Wed Dec 06 23:46:11 2006 +0000 +++ b/avformat.h Thu Dec 07 00:47:37 2006 +0000 @@ -39,14 +39,6 @@ /* packet functions */ -#ifndef MAXINT64 -#define MAXINT64 INT64_C(0x7fffffffffffffff) -#endif - -#ifndef MININT64 -#define MININT64 INT64_C(0x8000000000000000) -#endif - typedef struct AVPacket { int64_t pts; ///< presentation time stamp in time_base units int64_t dts; ///< decompression time stamp in time_base units
--- a/utils.c Wed Dec 06 23:46:11 2006 +0000 +++ b/utils.c Thu Dec 07 00:47:37 2006 +0000 @@ -1472,8 +1472,8 @@ int i; AVStream *st; - start_time = MAXINT64; - end_time = MININT64; + start_time = INT64_MAX; + end_time = INT64_MIN; for(i = 0;i < ic->nb_streams; i++) { st = ic->streams[i]; if (st->start_time != AV_NOPTS_VALUE) { @@ -1488,9 +1488,9 @@ } } } - if (start_time != MAXINT64) { + if (start_time != INT64_MAX) { ic->start_time = start_time; - if (end_time != MININT64) { + if (end_time != INT64_MIN) { ic->duration = end_time - start_time; if (ic->file_size > 0) { /* compute the bit rate */