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
11201bbf
Commit
11201bbf
authored
Dec 01, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: reindent after previous commit
parent
55faf56c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
mov.c
libavformat/mov.c
+13
-13
No files found.
libavformat/mov.c
View file @
11201bbf
...
@@ -2289,21 +2289,21 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
...
@@ -2289,21 +2289,21 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
av_log
(
mov
->
fc
,
AV_LOG_WARNING
,
"multiple edit list entries, "
av_log
(
mov
->
fc
,
AV_LOG_WARNING
,
"multiple edit list entries, "
"a/v desync might occur, patch welcome
\n
"
);
"a/v desync might occur, patch welcome
\n
"
);
/* adjust first dts according to edit list */
/* adjust first dts according to edit list */
if
((
empty_duration
||
start_time
)
&&
mov
->
time_scale
>
0
)
{
if
((
empty_duration
||
start_time
)
&&
mov
->
time_scale
>
0
)
{
if
(
empty_duration
)
if
(
empty_duration
)
empty_duration
=
av_rescale
(
empty_duration
,
sc
->
time_scale
,
mov
->
time_scale
);
empty_duration
=
av_rescale
(
empty_duration
,
sc
->
time_scale
,
mov
->
time_scale
);
sc
->
time_offset
=
start_time
-
empty_duration
;
sc
->
time_offset
=
start_time
-
empty_duration
;
current_dts
=
-
sc
->
time_offset
;
current_dts
=
-
sc
->
time_offset
;
if
(
sc
->
ctts_count
>
0
&&
sc
->
stts_count
>
0
&&
if
(
sc
->
ctts_count
>
0
&&
sc
->
stts_count
>
0
&&
sc
->
ctts_data
[
0
].
duration
/
FFMAX
(
sc
->
stts_data
[
0
].
duration
,
1
)
>
16
)
{
sc
->
ctts_data
[
0
].
duration
/
FFMAX
(
sc
->
stts_data
[
0
].
duration
,
1
)
>
16
)
{
/* more than 16 frames delay, dts are likely wrong
/* more than 16 frames delay, dts are likely wrong
this happens with files created by iMovie */
this happens with files created by iMovie */
sc
->
wrong_dts
=
1
;
sc
->
wrong_dts
=
1
;
st
->
codec
->
has_b_frames
=
1
;
st
->
codec
->
has_b_frames
=
1
;
}
}
}
}
}
}
/* only use old uncompressed audio chunk demuxing when stts specifies it */
/* only use old uncompressed audio chunk demuxing when stts specifies it */
if
(
!
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
if
(
!
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
...
...
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