Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
fa22ca22
Commit
fa22ca22
authored
Apr 21, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use INT64_MAX
Originally committed as revision 8770 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7f3f0dc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mov.c
libavformat/mov.c
+2
-2
No files found.
libavformat/mov.c
View file @
fa22ca22
...
@@ -223,7 +223,7 @@ static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -223,7 +223,7 @@ static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
a
.
offset
=
atom
.
offset
;
a
.
offset
=
atom
.
offset
;
if
(
atom
.
size
<
0
)
if
(
atom
.
size
<
0
)
atom
.
size
=
0x7fffffffffffffffLL
;
atom
.
size
=
INT64_MAX
;
while
(((
total_size
+
8
)
<
atom
.
size
)
&&
!
url_feof
(
pb
)
&&
!
err
)
{
while
(((
total_size
+
8
)
<
atom
.
size
)
&&
!
url_feof
(
pb
)
&&
!
err
)
{
a
.
size
=
atom
.
size
;
a
.
size
=
atom
.
size
;
a
.
type
=
0L
;
a
.
type
=
0L
;
...
@@ -1482,7 +1482,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -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) */
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
);
atom
.
size
=
url_fsize
(
pb
);
else
else
atom
.
size
=
0x7FFFFFFFFFFFFFFFLL
;
atom
.
size
=
INT64_MAX
;
/* check MOV header */
/* check MOV header */
err
=
mov_read_default
(
mov
,
pb
,
atom
);
err
=
mov_read_default
(
mov
,
pb
,
atom
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment