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
25c4950e
Commit
25c4950e
authored
Aug 08, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update duration and start_time
Originally committed as revision 2113 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
32f38cb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mov.c
libavformat/mov.c
+5
-3
No files found.
libavformat/mov.c
View file @
25c4950e
...
...
@@ -895,7 +895,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
);
#endif
st
->
time_length
=
0
;
//Not possible to get from this info, must count number of AMR frames
st
->
duration
=
AV_NOPTS_VALUE
;
//Not possible to get from this info, must count number of AMR frames
st
->
codec
.
sample_rate
=
8000
;
st
->
codec
.
channels
=
1
;
st
->
codec
.
bits_per_sample
=
16
;
...
...
@@ -1153,7 +1153,8 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
sc
->
sample_to_chunk_index
=
-
1
;
st
->
priv_data
=
sc
;
st
->
codec
.
codec_type
=
CODEC_TYPE_MOV_OTHER
;
st
->
time_length
=
(
c
->
duration
*
1000
)
/
c
->
time_scale
;
// time in miliseconds
st
->
start_time
=
0
;
/* XXX: check */
st
->
duration
=
(
c
->
duration
*
(
int64_t
)
AV_TIME_BASE
)
/
c
->
time_scale
;
c
->
streams
[
c
->
fc
->
nb_streams
-
1
]
=
sc
;
return
mov_read_default
(
c
,
pb
,
atom
);
...
...
@@ -1182,7 +1183,8 @@ static int mov_read_tkhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
get_be32
(
pb
);
/* modification time */
st
->
id
=
(
int
)
get_be32
(
pb
);
/* track id (NOT 0 !)*/
get_be32
(
pb
);
/* reserved */
st
->
time_length
=
get_be32
(
pb
)
*
1000
/
c
->
time_scale
;
/* duration */
st
->
start_time
=
0
;
/* check */
st
->
duration
=
(
get_be32
(
pb
)
*
(
int64_t
)
AV_TIME_BASE
)
/
c
->
time_scale
;
/* duration */
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