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
18978a49
Commit
18978a49
authored
Feb 26, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indentation
Originally committed as revision 12231 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6d680e1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
mov.c
libavformat/mov.c
+19
-19
No files found.
libavformat/mov.c
View file @
18978a49
...
@@ -1375,26 +1375,26 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
...
@@ -1375,26 +1375,26 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
goto
out
;
goto
out
;
}
}
for
(
j
=
0
;
j
<
frames
;
j
++
)
{
for
(
j
=
0
;
j
<
frames
;
j
++
)
{
av_add_index_entry
(
st
,
current_offset
,
current_dts
,
chunk_size
,
0
,
AVINDEX_KEYFRAME
);
av_add_index_entry
(
st
,
current_offset
,
current_dts
,
chunk_size
,
0
,
AVINDEX_KEYFRAME
);
/* get chunk duration */
/* get chunk duration */
chunk_duration
=
0
;
chunk_duration
=
0
;
while
(
chunk_samples
>
0
)
{
while
(
chunk_samples
>
0
)
{
if
(
chunk_samples
<
sc
->
stts_data
[
stts_index
].
count
)
{
if
(
chunk_samples
<
sc
->
stts_data
[
stts_index
].
count
)
{
chunk_duration
+=
sc
->
stts_data
[
stts_index
].
duration
*
chunk_samples
;
chunk_duration
+=
sc
->
stts_data
[
stts_index
].
duration
*
chunk_samples
;
sc
->
stts_data
[
stts_index
].
count
-=
chunk_samples
;
sc
->
stts_data
[
stts_index
].
count
-=
chunk_samples
;
break
;
break
;
}
else
{
}
else
{
chunk_duration
+=
sc
->
stts_data
[
stts_index
].
duration
*
chunk_samples
;
chunk_duration
+=
sc
->
stts_data
[
stts_index
].
duration
*
chunk_samples
;
chunk_samples
-=
sc
->
stts_data
[
stts_index
].
count
;
chunk_samples
-=
sc
->
stts_data
[
stts_index
].
count
;
if
(
stts_index
+
1
<
sc
->
stts_count
)
if
(
stts_index
+
1
<
sc
->
stts_count
)
stts_index
++
;
stts_index
++
;
}
}
}
}
current_offset
+=
sc
->
bytes_per_frame
;
current_offset
+=
sc
->
bytes_per_frame
;
dprintf
(
mov
->
fc
,
"AVIndex stream %d, chunk %d, offset %"
PRIx64
", dts %"
PRId64
", size %d, "
dprintf
(
mov
->
fc
,
"AVIndex stream %d, chunk %d, offset %"
PRIx64
", dts %"
PRId64
", size %d, "
"duration %d
\n
"
,
st
->
index
,
i
,
current_offset
,
current_dts
,
chunk_size
,
chunk_duration
);
"duration %d
\n
"
,
st
->
index
,
i
,
current_offset
,
current_dts
,
chunk_size
,
chunk_duration
);
assert
(
chunk_duration
%
sc
->
time_rate
==
0
);
assert
(
chunk_duration
%
sc
->
time_rate
==
0
);
current_dts
+=
chunk_duration
/
sc
->
time_rate
;
current_dts
+=
chunk_duration
/
sc
->
time_rate
;
}
}
}
}
}
}
...
...
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