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
da7e5619
Commit
da7e5619
authored
Feb 24, 2015
by
John Stebbins
Committed by
Luca Barbato
Feb 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: Allow writing track "forced" flag
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
d594dbec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
matroskaenc.c
libavformat/matroskaenc.c
+2
-0
No files found.
libavformat/matroskaenc.c
View file @
da7e5619
...
@@ -769,6 +769,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
...
@@ -769,6 +769,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
// if we need to clear it.
// if we need to clear it.
if
(
!
(
st
->
disposition
&
AV_DISPOSITION_DEFAULT
))
if
(
!
(
st
->
disposition
&
AV_DISPOSITION_DEFAULT
))
put_ebml_uint
(
pb
,
MATROSKA_ID_TRACKFLAGDEFAULT
,
!!
(
st
->
disposition
&
AV_DISPOSITION_DEFAULT
));
put_ebml_uint
(
pb
,
MATROSKA_ID_TRACKFLAGDEFAULT
,
!!
(
st
->
disposition
&
AV_DISPOSITION_DEFAULT
));
if
(
st
->
disposition
&
AV_DISPOSITION_FORCED
)
put_ebml_uint
(
pb
,
MATROSKA_ID_TRACKFLAGFORCED
,
!!
(
st
->
disposition
&
AV_DISPOSITION_FORCED
));
if
(
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
codec
->
initial_padding
)
{
if
(
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
codec
->
initial_padding
)
{
mkv
->
tracks
[
i
].
ts_offset
=
av_rescale_q
(
codec
->
initial_padding
,
mkv
->
tracks
[
i
].
ts_offset
=
av_rescale_q
(
codec
->
initial_padding
,
...
...
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