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
21f4b456
Commit
21f4b456
authored
Dec 07, 2018
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: Simplify get_stream_info_time()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
68e011e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
mov.c
libavformat/mov.c
+6
-10
No files found.
libavformat/mov.c
View file @
21f4b456
...
...
@@ -1234,16 +1234,12 @@ static int search_frag_moof_offset(MOVFragmentIndex *frag_index, int64_t offset)
static
int64_t
get_stream_info_time
(
MOVFragmentStreamInfo
*
frag_stream_info
)
{
if
(
frag_stream_info
)
{
if
(
frag_stream_info
->
sidx_pts
!=
AV_NOPTS_VALUE
)
return
frag_stream_info
->
sidx_pts
;
if
(
frag_stream_info
->
first_tfra_pts
!=
AV_NOPTS_VALUE
)
return
frag_stream_info
->
first_tfra_pts
;
if
(
frag_stream_info
->
tfdt_dts
!=
AV_NOPTS_VALUE
)
return
frag_stream_info
->
tfdt_dts
;
}
return
AV_NOPTS_VALUE
;
av_assert0
(
frag_stream_info
);
if
(
frag_stream_info
->
sidx_pts
!=
AV_NOPTS_VALUE
)
return
frag_stream_info
->
sidx_pts
;
if
(
frag_stream_info
->
first_tfra_pts
!=
AV_NOPTS_VALUE
)
return
frag_stream_info
->
first_tfra_pts
;
return
frag_stream_info
->
tfdt_dts
;
}
static
int64_t
get_frag_time
(
MOVFragmentIndex
*
frag_index
,
...
...
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