Commit 99625dd8 authored by ramiro's avatar ramiro

Split av_exit() out of main()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10509 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c06a617f
...@@ -3789,6 +3789,8 @@ static void show_help(void) ...@@ -3789,6 +3789,8 @@ static void show_help(void)
av_opt_show(sws_opts, NULL); av_opt_show(sws_opts, NULL);
} }
static int av_exit();
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int i; int i;
...@@ -3830,6 +3832,13 @@ int main(int argc, char **argv) ...@@ -3830,6 +3832,13 @@ int main(int argc, char **argv)
printf("bench: utime=%0.3fs\n", ti / 1000000.0); printf("bench: utime=%0.3fs\n", ti / 1000000.0);
} }
return av_exit();
}
static int av_exit()
{
int i;
/* close files */ /* close files */
for(i=0;i<nb_output_files;i++) { for(i=0;i<nb_output_files;i++) {
/* maybe av_close_output_file ??? */ /* maybe av_close_output_file ??? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment