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
666fd092
Commit
666fd092
authored
Aug 20, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: move close_output_stream earlier.
It will avoid a forward declaration.
parent
425b7711
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
ffmpeg.c
ffmpeg.c
+12
-12
No files found.
ffmpeg.c
View file @
666fd092
...
...
@@ -572,6 +572,18 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
}
}
static
void
close_output_stream
(
OutputStream
*
ost
)
{
OutputFile
*
of
=
output_files
[
ost
->
file_index
];
ost
->
finished
=
1
;
if
(
of
->
shortest
)
{
int
i
;
for
(
i
=
0
;
i
<
of
->
ctx
->
nb_streams
;
i
++
)
output_streams
[
of
->
ost_index
+
i
]
->
finished
=
1
;
}
}
static
int
check_recording_time
(
OutputStream
*
ost
)
{
OutputFile
*
of
=
output_files
[
ost
->
file_index
];
...
...
@@ -2661,18 +2673,6 @@ static void reset_eagain(void)
output_streams
[
i
]
->
unavailable
=
0
;
}
static
void
close_output_stream
(
OutputStream
*
ost
)
{
OutputFile
*
of
=
output_files
[
ost
->
file_index
];
ost
->
finished
=
1
;
if
(
of
->
shortest
)
{
int
i
;
for
(
i
=
0
;
i
<
of
->
ctx
->
nb_streams
;
i
++
)
output_streams
[
of
->
ost_index
+
i
]
->
finished
=
1
;
}
}
/**
* @return
* - 0 -- one packet was read and processed
...
...
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