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
a5f6720f
Commit
a5f6720f
authored
Oct 22, 2012
by
Jason
Committed by
Michael Niedermayer
Nov 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add QT CC track mux support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ebfc212b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
movenc.c
libavformat/movenc.c
+12
-2
No files found.
libavformat/movenc.c
View file @
a5f6720f
...
@@ -1375,6 +1375,7 @@ static int mov_write_gmhd_tag(AVIOContext *pb, MOVTrack *track)
...
@@ -1375,6 +1375,7 @@ static int mov_write_gmhd_tag(AVIOContext *pb, MOVTrack *track)
* don't appear to be documented, so the
* don't appear to be documented, so the
* bytes are copied verbatim.
* bytes are copied verbatim.
*/
*/
if
(
track
->
tag
!=
MKTAG
(
'c'
,
'6'
,
'0'
,
'8'
))
{
avio_wb32
(
pb
,
0x2C
);
/* size */
avio_wb32
(
pb
,
0x2C
);
/* size */
ffio_wfourcc
(
pb
,
"text"
);
ffio_wfourcc
(
pb
,
"text"
);
avio_wb16
(
pb
,
0x01
);
avio_wb16
(
pb
,
0x01
);
...
@@ -1387,6 +1388,7 @@ static int mov_write_gmhd_tag(AVIOContext *pb, MOVTrack *track)
...
@@ -1387,6 +1388,7 @@ static int mov_write_gmhd_tag(AVIOContext *pb, MOVTrack *track)
avio_wb32
(
pb
,
0x00
);
avio_wb32
(
pb
,
0x00
);
avio_wb32
(
pb
,
0x00004000
);
avio_wb32
(
pb
,
0x00004000
);
avio_wb16
(
pb
,
0x0000
);
avio_wb16
(
pb
,
0x0000
);
}
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
int64_t
tmcd_pos
=
avio_tell
(
pb
);
int64_t
tmcd_pos
=
avio_tell
(
pb
);
...
@@ -1435,9 +1437,14 @@ static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
...
@@ -1435,9 +1437,14 @@ static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
hdlr_type
=
"soun"
;
hdlr_type
=
"soun"
;
descr
=
"SoundHandler"
;
descr
=
"SoundHandler"
;
}
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_SUBTITLE
)
{
}
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_SUBTITLE
)
{
if
(
track
->
tag
==
MKTAG
(
'c'
,
'6'
,
'0'
,
'8'
))
{
hdlr_type
=
"clcp"
;
descr
=
"ClosedCaptionHandler"
;
}
else
{
if
(
track
->
tag
==
MKTAG
(
't'
,
'x'
,
'3'
,
'g'
))
hdlr_type
=
"sbtl"
;
if
(
track
->
tag
==
MKTAG
(
't'
,
'x'
,
'3'
,
'g'
))
hdlr_type
=
"sbtl"
;
else
hdlr_type
=
"text"
;
else
hdlr_type
=
"text"
;
descr
=
"SubtitleHandler"
;
descr
=
"SubtitleHandler"
;
}
}
else
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
}
else
if
(
track
->
enc
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
hdlr_type
=
"tmcd"
;
hdlr_type
=
"tmcd"
;
descr
=
"TimeCodeHandler"
;
descr
=
"TimeCodeHandler"
;
...
@@ -1492,8 +1499,11 @@ static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
...
@@ -1492,8 +1499,11 @@ static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
mov_write_smhd_tag
(
pb
);
mov_write_smhd_tag
(
pb
);
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_SUBTITLE
)
{
else
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_SUBTITLE
)
{
if
(
track
->
tag
==
MKTAG
(
't'
,
'e'
,
'x'
,
't'
))
mov_write_gmhd_tag
(
pb
,
track
);
if
(
track
->
tag
==
MKTAG
(
't'
,
'e'
,
'x'
,
't'
)
||
track
->
tag
==
MKTAG
(
'c'
,
'6'
,
'0'
,
'8'
))
{
else
mov_write_nmhd_tag
(
pb
);
mov_write_gmhd_tag
(
pb
,
track
);
}
else
{
mov_write_nmhd_tag
(
pb
);
}
}
else
if
(
track
->
tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
}
else
if
(
track
->
tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
mov_write_gmhd_tag
(
pb
,
track
);
mov_write_gmhd_tag
(
pb
,
track
);
}
else
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
{
}
else
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
{
...
...
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