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
9cdf048a
Commit
9cdf048a
authored
Nov 29, 2011
by
Geek.Song
Committed by
Michael Niedermayer
Nov 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: Remove unneeded chunkSize field from MOVIentry
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
313d30c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
movenc.c
libavformat/movenc.c
+4
-3
movenc.h
libavformat/movenc.h
+0
-1
No files found.
libavformat/movenc.c
View file @
9cdf048a
...
...
@@ -1811,15 +1811,17 @@ static void build_chunks(MOVTrack *trk)
{
int
i
;
MOVIentry
*
chunk
=
&
trk
->
cluster
[
0
];
uint64_t
chunkSize
=
chunk
->
size
;
chunk
->
chunkNum
=
1
;
trk
->
chunkCount
=
1
;
for
(
i
=
1
;
i
<
trk
->
entry
;
i
++
){
if
(
chunk
->
pos
+
chunk
->
chunk
Size
==
trk
->
cluster
[
i
].
pos
){
chunk
->
chunkSize
+=
trk
->
cluster
[
i
].
size
;
if
(
chunk
->
pos
+
chunkSize
==
trk
->
cluster
[
i
].
pos
){
chunk
Size
+=
trk
->
cluster
[
i
].
size
;
chunk
->
samplesInChunk
+=
trk
->
cluster
[
i
].
entries
;
}
else
{
trk
->
cluster
[
i
].
chunkNum
=
chunk
->
chunkNum
+
1
;
chunk
=&
trk
->
cluster
[
i
];
chunkSize
=
chunk
->
size
;
trk
->
chunkCount
++
;
}
}
...
...
@@ -2092,7 +2094,6 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
trk
->
cluster
[
trk
->
entry
].
pos
=
avio_tell
(
pb
)
-
size
;
trk
->
cluster
[
trk
->
entry
].
samplesInChunk
=
samplesInChunk
;
trk
->
cluster
[
trk
->
entry
].
chunkSize
=
trk
->
cluster
[
trk
->
entry
].
size
=
size
;
trk
->
cluster
[
trk
->
entry
].
entries
=
samplesInChunk
;
trk
->
cluster
[
trk
->
entry
].
dts
=
pkt
->
dts
;
...
...
libavformat/movenc.h
View file @
9cdf048a
...
...
@@ -44,7 +44,6 @@ typedef struct MOVIentry {
uint64_t
pos
;
unsigned
int
samplesInChunk
;
unsigned
int
chunkNum
;
///< Chunk number if the current entry is a chunk start otherwise 0
uint64_t
chunkSize
;
unsigned
int
entries
;
int
cts
;
int64_t
dts
;
...
...
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