diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-04-21 18:01:47 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-04-21 18:01:47 +0000 |
commit | fa22ca2214cb6d6482dab3377eb8a40467b5a651 (patch) | |
tree | 87b67b806c65f413d757a939b8d3f0d4d402b4de | |
parent | 7f3f0dc2213c9022dd75285f4151f30f968410a6 (diff) | |
download | ffmpeg-fa22ca2214cb6d6482dab3377eb8a40467b5a651.tar.gz |
use INT64_MAX
Originally committed as revision 8770 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index edee417843..1b93b04c0d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -223,7 +223,7 @@ static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) a.offset = atom.offset; if (atom.size < 0) - atom.size = 0x7fffffffffffffffLL; + atom.size = INT64_MAX; while(((total_size + 8) < atom.size) && !url_feof(pb) && !err) { a.size = atom.size; a.type=0L; @@ -1482,7 +1482,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) if(!url_is_streamed(pb)) /* .mov and .mp4 aren't streamable anyway (only progressive download if moov is before mdat) */ atom.size = url_fsize(pb); else - atom.size = 0x7FFFFFFFFFFFFFFFLL; + atom.size = INT64_MAX; /* check MOV header */ err = mov_read_default(mov, pb, atom); |