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
48e50921
Commit
48e50921
authored
Jun 10, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: make -shortest work with streamcopy
CC: libav-stable@libav.org
parent
2f417031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
avconv.c
avconv.c
+16
-11
No files found.
avconv.c
View file @
48e50921
...
...
@@ -707,6 +707,19 @@ static int poll_filter(OutputStream *ost)
return
0
;
}
static
void
finish_output_stream
(
OutputStream
*
ost
)
{
OutputFile
*
of
=
output_files
[
ost
->
file_index
];
int
i
;
ost
->
finished
=
1
;
if
(
of
->
shortest
)
{
for
(
i
=
0
;
i
<
of
->
ctx
->
nb_streams
;
i
++
)
output_streams
[
of
->
ost_index
+
i
]
->
finished
=
1
;
}
}
/*
* Read as many frames from possible from lavfi and encode them.
*
...
...
@@ -717,7 +730,7 @@ static int poll_filter(OutputStream *ost)
*/
static
int
poll_filters
(
void
)
{
int
i
,
j
,
ret
=
0
;
int
i
,
ret
=
0
;
while
(
ret
>=
0
&&
!
received_sigterm
)
{
OutputStream
*
ost
=
NULL
;
...
...
@@ -744,15 +757,7 @@ static int poll_filters(void)
ret
=
poll_filter
(
ost
);
if
(
ret
==
AVERROR_EOF
)
{
OutputFile
*
of
=
output_files
[
ost
->
file_index
];
ost
->
finished
=
1
;
if
(
of
->
shortest
)
{
for
(
j
=
0
;
j
<
of
->
ctx
->
nb_streams
;
j
++
)
output_streams
[
of
->
ost_index
+
j
]
->
finished
=
1
;
}
finish_output_stream
(
ost
);
ret
=
0
;
}
else
if
(
ret
==
AVERROR
(
EAGAIN
))
return
0
;
...
...
@@ -2376,7 +2381,7 @@ static int process_input(void)
if
(
ost
->
source_index
==
ifile
->
ist_index
+
i
&&
(
ost
->
stream_copy
||
ost
->
enc
->
type
==
AVMEDIA_TYPE_SUBTITLE
))
ost
->
finished
=
1
;
finish_output_stream
(
ost
)
;
}
}
...
...
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