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
6ede4e93
Unverified
Commit
6ede4e93
authored
Sep 06, 2016
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/matroskaenc: move skipped metadata keys to separate function
parent
86910b15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
matroskaenc.c
libavformat/matroskaenc.c
+11
-6
No files found.
libavformat/matroskaenc.c
View file @
6ede4e93
...
@@ -1308,6 +1308,16 @@ static int mkv_write_tag_targets(AVFormatContext *s,
...
@@ -1308,6 +1308,16 @@ static int mkv_write_tag_targets(AVFormatContext *s,
return
0
;
return
0
;
}
}
static
int
mkv_check_tag_name
(
const
char
*
name
,
unsigned
int
elementid
)
{
return
av_strcasecmp
(
name
,
"title"
)
&&
av_strcasecmp
(
name
,
"stereo_mode"
)
&&
av_strcasecmp
(
name
,
"creation_time"
)
&&
av_strcasecmp
(
name
,
"encoding_tool"
)
&&
(
elementid
!=
MATROSKA_ID_TAGTARGETS_TRACKUID
||
av_strcasecmp
(
name
,
"language"
));
}
static
int
mkv_write_tag
(
AVFormatContext
*
s
,
AVDictionary
*
m
,
unsigned
int
elementid
,
static
int
mkv_write_tag
(
AVFormatContext
*
s
,
AVDictionary
*
m
,
unsigned
int
elementid
,
unsigned
int
uid
,
ebml_master
*
tags
)
unsigned
int
uid
,
ebml_master
*
tags
)
{
{
...
@@ -1320,12 +1330,7 @@ static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int eleme
...
@@ -1320,12 +1330,7 @@ static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int eleme
return
ret
;
return
ret
;
while
((
t
=
av_dict_get
(
m
,
""
,
t
,
AV_DICT_IGNORE_SUFFIX
)))
{
while
((
t
=
av_dict_get
(
m
,
""
,
t
,
AV_DICT_IGNORE_SUFFIX
)))
{
if
(
av_strcasecmp
(
t
->
key
,
"title"
)
&&
if
(
mkv_check_tag_name
(
t
->
key
,
elementid
))
{
av_strcasecmp
(
t
->
key
,
"stereo_mode"
)
&&
av_strcasecmp
(
t
->
key
,
"creation_time"
)
&&
av_strcasecmp
(
t
->
key
,
"encoding_tool"
)
&&
(
elementid
!=
MATROSKA_ID_TAGTARGETS_TRACKUID
||
av_strcasecmp
(
t
->
key
,
"language"
)))
{
ret
=
mkv_write_simpletag
(
s
->
pb
,
t
);
ret
=
mkv_write_simpletag
(
s
->
pb
,
t
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
...
...
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