aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-09-16 18:08:01 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-09-16 18:08:01 +0000
commit47f93b61e8069347043ad5dca93a2c32cd4daa0c (patch)
tree1b1f94b5b7ea12e1cfff2ad5b0ded8958a8e26e1
parent4ca5ece51eb0e288b2f398c14917dd475ac34687 (diff)
downloadffmpeg-47f93b61e8069347043ad5dca93a2c32cd4daa0c.tar.gz
Split av_exit() out of main()
Originally committed as revision 10509 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b980e37d87..1fdfaa1c35 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3789,6 +3789,8 @@ static void show_help(void)
av_opt_show(sws_opts, NULL);
}
+static int av_exit();
+
int main(int argc, char **argv)
{
int i;
@@ -3830,6 +3832,13 @@ int main(int argc, char **argv)
printf("bench: utime=%0.3fs\n", ti / 1000000.0);
}
+ return av_exit();
+}
+
+static int av_exit()
+{
+ int i;
+
/* close files */
for(i=0;i<nb_output_files;i++) {
/* maybe av_close_output_file ??? */