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
59245e0c
Commit
59245e0c
authored
Jun 28, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: set the encoding/decoding_needed flags earlier
This will be useful in the following commits.
parent
56c2f377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
avconv.c
avconv.c
+0
-4
avconv_opt.c
avconv_opt.c
+11
-0
No files found.
avconv.c
View file @
59245e0c
...
@@ -1774,10 +1774,6 @@ static int transcode_init(void)
...
@@ -1774,10 +1774,6 @@ static int transcode_init(void)
goto
dump_format
;
goto
dump_format
;
}
}
if
(
ist
)
ist
->
decoding_needed
=
1
;
ost
->
encoding_needed
=
1
;
set_encoder_id
(
output_files
[
ost
->
file_index
],
ost
);
set_encoder_id
(
output_files
[
ost
->
file_index
],
ost
);
/*
/*
...
...
avconv_opt.c
View file @
59245e0c
...
@@ -1621,6 +1621,17 @@ loop_end:
...
@@ -1621,6 +1621,17 @@ loop_end:
}
}
av_dict_free
(
&
unused_opts
);
av_dict_free
(
&
unused_opts
);
/* set the encoding/decoding_needed flags */
for
(
i
=
of
->
ost_index
;
i
<
nb_output_streams
;
i
++
)
{
OutputStream
*
ost
=
output_streams
[
i
];
ost
->
encoding_needed
=
!
ost
->
stream_copy
;
if
(
ost
->
encoding_needed
&&
ost
->
source_index
>=
0
)
{
InputStream
*
ist
=
input_streams
[
ost
->
source_index
];
ist
->
decoding_needed
=
1
;
}
}
/* check filename in case of an image number is expected */
/* check filename in case of an image number is expected */
if
(
oc
->
oformat
->
flags
&
AVFMT_NEEDNUMBER
)
{
if
(
oc
->
oformat
->
flags
&
AVFMT_NEEDNUMBER
)
{
if
(
!
av_filename_number_test
(
oc
->
filename
))
{
if
(
!
av_filename_number_test
(
oc
->
filename
))
{
...
...
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