From e0a3173a94f2029de467f7a60f44e8caa7adb450 Mon Sep 17 00:00:00 2001 From: Pedro Arthur Date: Mon, 17 Aug 2015 17:03:20 -0300 Subject: swscale: refactor horizontal scaling + split color conversion from scaling - disabled gamma correction, until it's refactored too Signed-off-by: Michael Niedermayer --- libswscale/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libswscale/utils.c') diff --git a/libswscale/utils.c b/libswscale/utils.c index 1f4dc7d692..181a48ad21 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1702,7 +1702,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, } c->swscale = ff_getSwsFunc(c); - return 0; + return ff_init_filters(c); fail: // FIXME replace things by appropriate error codes if (ret == RETCODE_USE_CASCADE) { int tmpW = sqrt(srcW * (int64_t)dstW); @@ -2219,6 +2219,7 @@ void sws_freeContext(SwsContext *c) av_freep(&c->gamma); av_freep(&c->inv_gamma); + ff_free_filters(c); av_free(c); } -- cgit v1.2.3