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
7d03732f
Commit
7d03732f
authored
Aug 04, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Do not fail if a demuxer and decoder use the same option identifer
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
22a0249d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
ffmpeg.c
ffmpeg.c
+9
-0
ffmpeg.h
ffmpeg.h
+1
-0
ffmpeg_opt.c
ffmpeg_opt.c
+1
-0
No files found.
ffmpeg.c
View file @
7d03732f
...
...
@@ -532,6 +532,15 @@ static void ffmpeg_cleanup(int ret)
term_exit
();
}
void
remove_avoptions
(
AVDictionary
**
a
,
AVDictionary
*
b
)
{
AVDictionaryEntry
*
t
=
NULL
;
while
((
t
=
av_dict_get
(
b
,
""
,
t
,
AV_DICT_IGNORE_SUFFIX
)))
{
av_dict_set
(
a
,
t
->
key
,
NULL
,
AV_DICT_MATCH_CASE
);
}
}
void
assert_avoptions
(
AVDictionary
*
m
)
{
AVDictionaryEntry
*
t
;
...
...
ffmpeg.h
View file @
7d03732f
...
...
@@ -502,6 +502,7 @@ void show_usage(void);
void
opt_output_file
(
void
*
optctx
,
const
char
*
filename
);
void
remove_avoptions
(
AVDictionary
**
a
,
AVDictionary
*
b
);
void
assert_avoptions
(
AVDictionary
*
m
);
int
guess_input_channel_layout
(
InputStream
*
ist
);
...
...
ffmpeg_opt.c
View file @
7d03732f
...
...
@@ -872,6 +872,7 @@ static int open_input_file(OptionsContext *o, const char *filename)
print_error
(
filename
,
err
);
exit_program
(
1
);
}
remove_avoptions
(
&
o
->
g
->
format_opts
,
o
->
g
->
codec_opts
);
assert_avoptions
(
o
->
g
->
format_opts
);
/* apply forced codec ids */
...
...
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