summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e908561d79..feb1b2d760 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -427,6 +427,11 @@ static int av_exit(int ret)
powerpc_display_perf_report();
#endif /* CONFIG_POWERPC_PERF */
+ for (i=0;i<CODEC_TYPE_NB;i++)
+ av_free(avcodec_opts[i]);
+ av_free(avformat_opts);
+ av_free(sws_opts);
+
if (received_sigterm) {
fprintf(stderr,
"Received signal %d: terminating.\n",
@@ -434,11 +439,6 @@ static int av_exit(int ret)
exit (255);
}
- for (i=0;i<CODEC_TYPE_NB;i++)
- av_free(avcodec_opts[i]);
- av_free(avformat_opts);
- av_free(sws_opts);
-
exit(ret); /* not all OS-es handle main() return value */
return ret;
}