aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d7c90599d0..e908561d79 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -434,6 +434,11 @@ 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;
}