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
13f6917c
Commit
13f6917c
authored
Feb 24, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: set discard on input streams automatically.
parent
790a367d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
avconv.c
avconv.c
+4
-12
No files found.
avconv.c
View file @
13f6917c
...
...
@@ -3170,6 +3170,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
ist
->
st
=
st
;
ist
->
file_index
=
nb_input_files
;
ist
->
discard
=
1
;
st
->
discard
=
AVDISCARD_ALL
;
ist
->
opts
=
filter_codec_opts
(
codec_opts
,
ist
->
st
->
codec
->
codec_id
,
ic
,
st
);
ist
->
ts_scale
=
1
.
0
;
...
...
@@ -3178,10 +3179,6 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
ist
->
dec
=
choose_decoder
(
o
,
ic
,
st
);
switch
(
dec
->
codec_type
)
{
case
AVMEDIA_TYPE_AUDIO
:
if
(
o
->
audio_disable
)
st
->
discard
=
AVDISCARD_ALL
;
break
;
case
AVMEDIA_TYPE_VIDEO
:
if
(
dec
->
lowres
)
{
dec
->
flags
|=
CODEC_FLAG_EMU_EDGE
;
...
...
@@ -3189,17 +3186,10 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
dec
->
width
>>=
dec
->
lowres
;
}
if
(
o
->
video_disable
)
st
->
discard
=
AVDISCARD_ALL
;
else
if
(
video_discard
)
st
->
discard
=
video_discard
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
case
AVMEDIA_TYPE_DATA
:
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
if
(
o
->
subtitle_disable
)
st
->
discard
=
AVDISCARD_ALL
;
break
;
case
AVMEDIA_TYPE_ATTACHMENT
:
case
AVMEDIA_TYPE_UNKNOWN
:
break
;
...
...
@@ -3873,6 +3863,7 @@ static void opt_output_file(void *optctx, const char *filename)
ost->source_index = index;\
ost->sync_ist = &input_streams[index];\
input_streams[index].discard = 0;\
input_streams[index].st->discard = AVDISCARD_NONE;\
}
/* video: highest resolution */
...
...
@@ -3936,6 +3927,7 @@ static void opt_output_file(void *optctx, const char *filename)
ost
->
sync_ist
=
&
input_streams
[
input_files
[
map
->
sync_file_index
].
ist_index
+
map
->
sync_stream_index
];
ist
->
discard
=
0
;
ist
->
st
->
discard
=
AVDISCARD_NONE
;
}
}
...
...
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