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
3f1710e7
Commit
3f1710e7
authored
Aug 24, 2010
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 24894 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
66842fe8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
ffmpeg.c
ffmpeg.c
+24
-24
No files found.
ffmpeg.c
View file @
3f1710e7
...
...
@@ -2073,33 +2073,33 @@ static int transcode(AVFormatContext **output_files,
}
else
{
int
best_nb_frames
=-
1
;
/* get corresponding input stream index : we select the first one with the right type */
found
=
0
;
for
(
j
=
0
;
j
<
nb_istreams
;
j
++
)
{
int
skip
=
0
;
ist
=
ist_table
[
j
];
if
(
opt_programid
){
int
pi
,
si
;
AVFormatContext
*
f
=
input_files
[
ist
->
file_index
];
skip
=
1
;
for
(
pi
=
0
;
pi
<
f
->
nb_programs
;
pi
++
){
AVProgram
*
p
=
f
->
programs
[
pi
];
if
(
p
->
id
==
opt_programid
)
for
(
si
=
0
;
si
<
p
->
nb_stream_indexes
;
si
++
){
if
(
f
->
streams
[
p
->
stream_index
[
si
]
]
==
ist
->
st
)
skip
=
0
;
}
}
/* get corresponding input stream index : we select the first one with the right type */
found
=
0
;
for
(
j
=
0
;
j
<
nb_istreams
;
j
++
)
{
int
skip
=
0
;
ist
=
ist_table
[
j
];
if
(
opt_programid
){
int
pi
,
si
;
AVFormatContext
*
f
=
input_files
[
ist
->
file_index
];
skip
=
1
;
for
(
pi
=
0
;
pi
<
f
->
nb_programs
;
pi
++
){
AVProgram
*
p
=
f
->
programs
[
pi
];
if
(
p
->
id
==
opt_programid
)
for
(
si
=
0
;
si
<
p
->
nb_stream_indexes
;
si
++
){
if
(
f
->
streams
[
p
->
stream_index
[
si
]
]
==
ist
->
st
)
skip
=
0
;
}
}
if
(
ist
->
discard
&&
ist
->
st
->
discard
!=
AVDISCARD_ALL
&&
!
skip
&&
ist
->
st
->
codec
->
codec_type
==
ost
->
st
->
codec
->
codec_type
)
{
if
(
best_nb_frames
<
ist
->
st
->
codec_info_nb_frames
)
{
best_nb_frames
=
ist
->
st
->
codec_info_nb_frames
;
ost
->
source_index
=
j
;
found
=
1
;
}
}
if
(
ist
->
discard
&&
ist
->
st
->
discard
!=
AVDISCARD_ALL
&&
!
skip
&&
ist
->
st
->
codec
->
codec_type
==
ost
->
st
->
codec
->
codec_type
)
{
if
(
best_nb_frames
<
ist
->
st
->
codec_info_nb_frames
){
best_nb_frames
=
ist
->
st
->
codec_info_nb_frames
;
ost
->
source_index
=
j
;
found
=
1
;
}
}
}
if
(
!
found
)
{
if
(
!
opt_programid
)
{
...
...
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