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
a2aff269
Commit
a2aff269
authored
May 20, 2015
by
Rodger Combs
Committed by
Michael Niedermayer
May 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: support ignoring unsupported mapped streams
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
64235571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ffmpeg_opt.c
ffmpeg_opt.c
+7
-2
No files found.
ffmpeg_opt.c
View file @
a2aff269
...
...
@@ -111,6 +111,7 @@ static int do_psnr = 0;
static
int
input_sync
;
static
int
override_ffserver
=
0
;
static
int
input_stream_potentially_available
=
0
;
static
int
ignore_unknown_streams
=
0
;
static
void
uninit_options
(
OptionsContext
*
o
)
{
...
...
@@ -2018,9 +2019,11 @@ loop_end:
case
AVMEDIA_TYPE_DATA
:
ost
=
new_data_stream
(
o
,
oc
,
src_idx
);
break
;
case
AVMEDIA_TYPE_ATTACHMENT
:
ost
=
new_attachment_stream
(
o
,
oc
,
src_idx
);
break
;
default:
av_log
(
NULL
,
AV_LOG_FATAL
,
"Cannot map stream #%d:%d - unsupported type.
\n
"
,
av_log
(
NULL
,
ignore_unknown_streams
?
AV_LOG_FATAL
:
AV_LOG_WARNING
,
"Cannot map stream #%d:%d - unsupported type.
\n
"
,
map
->
file_index
,
map
->
stream_index
);
exit_program
(
1
);
if
(
!
ignore_unknown_streams
)
exit_program
(
1
);
}
}
}
...
...
@@ -2855,6 +2858,8 @@ const OptionDef options[] = {
"overwrite output files"
},
{
"n"
,
OPT_BOOL
,
{
&
no_file_overwrite
},
"never overwrite output files"
},
{
"ignore_unknown"
,
OPT_BOOL
,
{
&
ignore_unknown_streams
},
"Ignore unknown stream types"
},
{
"c"
,
HAS_ARG
|
OPT_STRING
|
OPT_SPEC
|
OPT_INPUT
|
OPT_OUTPUT
,
{
.
off
=
OFFSET
(
codec_names
)
},
"codec name"
,
"codec"
},
...
...
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