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
bb7f71d9
Commit
bb7f71d9
authored
Aug 01, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/movenc: Write total number of tracks as part of metadata.
Fixes ticket #2157.
parent
9408d990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
movenc.c
libavformat/movenc.c
+5
-1
No files found.
libavformat/movenc.c
View file @
bb7f71d9
...
...
@@ -2022,6 +2022,10 @@ static int mov_write_trkn_tag(AVIOContext *pb, MOVMuxContext *mov,
AVDictionaryEntry
*
t
=
av_dict_get
(
s
->
metadata
,
"track"
,
NULL
,
0
);
int
size
=
0
,
track
=
t
?
atoi
(
t
->
value
)
:
0
;
if
(
track
)
{
int
tracks
=
0
;
char
*
slash
=
strchr
(
t
->
value
,
'/'
);
if
(
slash
)
tracks
=
atoi
(
slash
+
1
);
avio_wb32
(
pb
,
32
);
/* size */
ffio_wfourcc
(
pb
,
"trkn"
);
avio_wb32
(
pb
,
24
);
/* size */
...
...
@@ -2030,7 +2034,7 @@ static int mov_write_trkn_tag(AVIOContext *pb, MOVMuxContext *mov,
avio_wb32
(
pb
,
0
);
avio_wb16
(
pb
,
0
);
// empty
avio_wb16
(
pb
,
track
);
// track number
avio_wb16
(
pb
,
0
);
// total track number
avio_wb16
(
pb
,
tracks
);
// total track number
avio_wb16
(
pb
,
0
);
// empty
size
=
32
;
}
...
...
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