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
4c1da0d1
Commit
4c1da0d1
authored
Mar 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: allow selective and complete disabling of map_metadata.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f8353d5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ffmpeg.c
ffmpeg.c
+11
-3
No files found.
ffmpeg.c
View file @
4c1da0d1
...
...
@@ -3424,6 +3424,16 @@ static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFor
parse_meta_type
(
inspec
,
&
type_in
,
&
idx_in
,
&
istream_spec
);
parse_meta_type
(
outspec
,
&
type_out
,
&
idx_out
,
&
ostream_spec
);
if
(
!
ic
)
{
if
(
type_out
==
'g'
||
!*
outspec
)
o
->
metadata_global_manual
=
1
;
if
(
type_out
==
's'
||
!*
outspec
)
o
->
metadata_streams_manual
=
1
;
if
(
type_out
==
'c'
||
!*
outspec
)
o
->
metadata_chapters_manual
=
1
;
return
0
;
}
if
(
type_in
==
'g'
||
type_out
==
'g'
)
o
->
metadata_global_manual
=
1
;
if
(
type_in
==
's'
||
type_out
==
's'
)
...
...
@@ -4511,13 +4521,11 @@ static void opt_output_file(void *optctx, const char *filename)
char
*
p
;
int
in_file_index
=
strtol
(
o
->
metadata_map
[
i
].
u
.
str
,
&
p
,
0
);
if
(
in_file_index
<
0
)
continue
;
if
(
in_file_index
>=
nb_input_files
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Invalid input file index %d while processing metadata maps
\n
"
,
in_file_index
);
exit_program
(
1
);
}
copy_metadata
(
o
->
metadata_map
[
i
].
specifier
,
*
p
?
p
+
1
:
p
,
oc
,
in
put_files
[
in_file_index
].
ctx
,
o
);
copy_metadata
(
o
->
metadata_map
[
i
].
specifier
,
*
p
?
p
+
1
:
p
,
oc
,
in
_file_index
>=
0
?
input_files
[
in_file_index
].
ctx
:
NULL
,
o
);
}
/* copy chapters */
...
...
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