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
1175561e
Commit
1175561e
authored
Mar 22, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support 64bit date/duration
Originally committed as revision 5193 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
68ca39b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
mov.c
libavformat/mov.c
+19
-8
No files found.
libavformat/mov.c
View file @
1175561e
...
...
@@ -693,16 +693,21 @@ static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static
int
mov_read_mvhd
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
{
get_byte
(
pb
);
/* version */
int
version
=
get_byte
(
pb
);
/* version */
get_byte
(
pb
);
get_byte
(
pb
);
get_byte
(
pb
);
/* flags */
get_be32
(
pb
);
/* creation time */
get_be32
(
pb
);
/* modification time */
if
(
version
==
1
)
{
get_be64
(
pb
);
get_be64
(
pb
);
}
else
{
get_be32
(
pb
);
/* creation time */
get_be32
(
pb
);
/* modification time */
}
c
->
time_scale
=
get_be32
(
pb
);
/* time scale */
#ifdef DEBUG
av_log
(
NULL
,
AV_LOG_DEBUG
,
"time scale = %i
\n
"
,
c
->
time_scale
);
#endif
c
->
duration
=
get_be32
(
pb
);
/* duration */
c
->
duration
=
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* duration */
get_be32
(
pb
);
/* preferred scale */
get_be16
(
pb
);
/* preferred volume */
...
...
@@ -1335,10 +1340,11 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static
int
mov_read_tkhd
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
{
AVStream
*
st
;
int
version
;
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
get_byte
(
pb
);
/* version */
version
=
get_byte
(
pb
);
/* version */
get_byte
(
pb
);
get_byte
(
pb
);
get_byte
(
pb
);
/* flags */
...
...
@@ -1349,12 +1355,17 @@ static int mov_read_tkhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
MOV_TRACK_IN_POSTER 0x0008
*/
get_be32
(
pb
);
/* creation time */
get_be32
(
pb
);
/* modification time */
if
(
version
==
1
)
{
get_be64
(
pb
);
get_be64
(
pb
);
}
else
{
get_be32
(
pb
);
/* creation time */
get_be32
(
pb
);
/* modification time */
}
st
->
id
=
(
int
)
get_be32
(
pb
);
/* track id (NOT 0 !)*/
get_be32
(
pb
);
/* reserved */
st
->
start_time
=
0
;
/* check */
get_be32
(
pb
);
/* highlevel (considering edits) duration in movie timebase */
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* highlevel (considering edits) duration in movie timebase */
get_be32
(
pb
);
/* reserved */
get_be32
(
pb
);
/* reserved */
...
...
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