summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-20 10:57:18 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-22 19:04:30 +0200
commit666fd092beede8694684e0ea663fcdf732c64a03 (patch)
treeb94f00a915678b848958dfd109dbc48e2d710c78 /ffmpeg.c
parent425b77114ba25da1764c9f615a318c2e1c5b4745 (diff)
ffmpeg: move close_output_stream earlier.
It will avoid a forward declaration.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 597c05170a..c39e5a3cfc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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