summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rotord/libavexporter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h
index 03b7580..deb71ab 100644
--- a/rotord/libavexporter.h
+++ b/rotord/libavexporter.h
@@ -417,6 +417,9 @@ namespace libav {
}
*/
//always convert RGB to YUV
+ //should be context allocated once per render instead of per frame??
+ //
+ //
sws_ctx = sws_getContext(c->width, c->height, AV_PIX_FMT_RGB24,
c->width, c->height, AV_PIX_FMT_YUV420P,
sws_flags, NULL, NULL, NULL);