Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
d9cc6bb4
Commit
d9cc6bb4
authored
Dec 01, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support ffmpeg -dn to disable copying data streams.
Fixes ticket #647.
parent
3e1951e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ffmpeg.c
ffmpeg.c
+5
-0
No files found.
ffmpeg.c
View file @
d9cc6bb4
...
...
@@ -3243,6 +3243,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
st
->
discard
=
video_discard
;
break
;
case
AVMEDIA_TYPE_DATA
:
if
(
o
->
data_disable
)
st
->
discard
=
AVDISCARD_ALL
;
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
if
(
!
ist
->
dec
)
...
...
@@ -4060,6 +4062,8 @@ static void opt_output_file(void *optctx, const char *filename)
continue
;
if
(
o
->
video_disable
&&
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
continue
;
if
(
o
->
data_disable
&&
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_DATA
)
continue
;
switch
(
ist
->
st
->
codec
->
codec_type
)
{
case
AVMEDIA_TYPE_VIDEO
:
ost
=
new_video_stream
(
o
,
oc
);
break
;
...
...
@@ -4764,6 +4768,7 @@ static const OptionDef options[] = {
{
"fpre"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_FUNC2
,
{(
void
*
)
opt_preset
},
"set options from indicated preset file"
,
"filename"
},
/* data codec support */
{
"dcodec"
,
HAS_ARG
|
OPT_DATA
|
OPT_FUNC2
,
{(
void
*
)
opt_data_codec
},
"force data codec ('copy' to copy stream)"
,
"codec"
},
{
"dn"
,
OPT_BOOL
|
OPT_VIDEO
|
OPT_OFFSET
,
{.
off
=
OFFSET
(
data_disable
)},
"disable data"
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{(
void
*
)
opt_default
},
"generic catch all option"
,
""
},
{
NULL
,
},
...
...
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