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
2a33c673
Commit
2a33c673
authored
Jan 30, 2010
by
Daniel Verkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set duration in Smacker demuxer
Originally committed as revision 21538 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
895ab748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
smacker.c
libavformat/smacker.c
+1
-0
No files found.
libavformat/smacker.c
View file @
2a33c673
...
...
@@ -169,6 +169,7 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap)
tbase
=
100000
;
av_reduce
(
&
tbase
,
&
smk
->
pts_inc
,
tbase
,
smk
->
pts_inc
,
(
1UL
<<
31
)
-
1
);
av_set_pts_info
(
st
,
33
,
smk
->
pts_inc
,
tbase
);
st
->
duration
=
smk
->
frames
;
/* handle possible audio streams */
for
(
i
=
0
;
i
<
7
;
i
++
)
{
smk
->
indexes
[
i
]
=
-
1
;
...
...
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