summaryrefslogtreecommitdiff
path: root/rotord/libavexporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/libavexporter.h')
-rw-r--r--rotord/libavexporter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h
index c5e66e3..03b7580 100644
--- a/rotord/libavexporter.h
+++ b/rotord/libavexporter.h
@@ -459,6 +459,12 @@ namespace libav {
ret = 0;
}
}
+
+ //
+ // added 22 may in memory leak run
+ //
+ sws_freeContext(sws_ctx); //should be done once per render instead of per frame??
+
if (ret != 0) {
//fprintf(stderr, "Error while writing video frame: %s\n", av_err2str(ret));
exit(1);