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
b89e8759
Commit
b89e8759
authored
Aug 25, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: Write tmcd extradata
parent
5b41eb91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
movenc.c
libavformat/movenc.c
+17
-0
No files found.
libavformat/movenc.c
View file @
b89e8759
...
...
@@ -1060,6 +1060,19 @@ static int mov_write_rtp_tag(AVIOContext *pb, MOVTrack *track)
return
update_size
(
pb
,
pos
);
}
static
int
mov_write_tmcd_tag
(
AVIOContext
*
pb
,
MOVTrack
*
track
)
{
int64_t
pos
=
avio_tell
(
pb
);
avio_wb32
(
pb
,
0
);
/* size */
ffio_wfourcc
(
pb
,
"tmcd"
);
/* Data format */
avio_wb32
(
pb
,
0
);
/* Reserved */
avio_wb32
(
pb
,
1
);
/* Data reference index */
if
(
track
->
enc
->
extradata_size
)
avio_write
(
pb
,
track
->
enc
->
extradata
,
track
->
enc
->
extradata_size
);
return
update_size
(
pb
,
pos
);
}
static
int
mov_write_stsd_tag
(
AVIOContext
*
pb
,
MOVTrack
*
track
)
{
int64_t
pos
=
avio_tell
(
pb
);
...
...
@@ -1075,6 +1088,8 @@ static int mov_write_stsd_tag(AVIOContext *pb, MOVTrack *track)
mov_write_subtitle_tag
(
pb
,
track
);
else
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
mov_write_rtp_tag
(
pb
,
track
);
else
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
mov_write_tmcd_tag
(
pb
,
track
);
return
update_size
(
pb
,
pos
);
}
...
...
@@ -1324,6 +1339,8 @@ static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
else
mov_write_nmhd_tag
(
pb
);
}
else
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
{
mov_write_hmhd_tag
(
pb
);
}
else
if
(
track
->
tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
mov_write_gmhd_tag
(
pb
);
}
if
(
track
->
mode
==
MODE_MOV
)
/* FIXME: Why do it for MODE_MOV only ? */
mov_write_hdlr_tag
(
pb
,
NULL
);
...
...
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