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
9e8aae44
Commit
9e8aae44
authored
Apr 02, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: flush decoders immediately after an EOF.
Prevents extensive buffering when overlaying a single picture.
parent
89605e4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
avconv.c
avconv.c
+8
-1
No files found.
avconv.c
View file @
9e8aae44
...
...
@@ -3054,6 +3054,13 @@ static int transcode(void)
}
if
(
ret
<
0
)
{
input_files
[
file_index
]
->
eof_reached
=
1
;
for
(
i
=
0
;
i
<
input_files
[
file_index
]
->
nb_streams
;
i
++
)
{
ist
=
input_streams
[
input_files
[
file_index
]
->
ist_index
+
i
];
if
(
ist
->
decoding_needed
)
output_packet
(
ist
,
NULL
);
}
if
(
opt_shortest
)
break
;
else
...
...
@@ -3125,7 +3132,7 @@ static int transcode(void)
/* at the end of stream, we must flush the decoder buffers */
for
(
i
=
0
;
i
<
nb_input_streams
;
i
++
)
{
ist
=
input_streams
[
i
];
if
(
ist
->
decoding_needed
)
{
if
(
!
input_files
[
ist
->
file_index
]
->
eof_reached
&&
ist
->
decoding_needed
)
{
output_packet
(
ist
,
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