summaryrefslogtreecommitdiff
path: root/rotord/libavexporter.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-05-22 19:39:11 +0100
committerTim Redfern <tim@eclectronics.org>2013-05-22 19:39:11 +0100
commit55513473ca37841b40662e1a0221d7dd260a59b7 (patch)
treebe531f11f5258fa3cd576e2a8432513989fc82fa /rotord/libavexporter.h
parent2c3a51b49232ebd6776ba491f96335208d3fdc66 (diff)
baffled by audio analysis
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);