diff options
author | Pedro Arthur <bygrandao@gmail.com> | 2015-09-04 18:11:21 -0300 |
---|---|---|
committer | Pedro Arthur <bygrandao@gmail.com> | 2015-09-04 19:00:20 -0300 |
commit | 3059562aa19a576bdf900a4875c1aa69ef69c86e (patch) | |
tree | 93638cfb4d090e600626060865a89b2e25b75ddb /libswscale/vscale.c | |
parent | f67aff3ad7168b0721e7e5ba05858d885966534a (diff) | |
download | ffmpeg-3059562aa19a576bdf900a4875c1aa69ef69c86e.tar.gz |
swscale: re-enable gamma
+added gamma conversion to refactored code
Diffstat (limited to 'libswscale/vscale.c')
-rw-r--r-- | libswscale/vscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/vscale.c b/libswscale/vscale.c index 18d5ad15f4..3d6e81a70f 100644 --- a/libswscale/vscale.c +++ b/libswscale/vscale.c @@ -229,7 +229,7 @@ void ff_init_vscale_pfn(SwsContext *c, { VScalerContext *lumCtx = NULL; VScalerContext *chrCtx = NULL; - int idx = c->numDesc - 1; + int idx = c->numDesc - (c->is_internal_gamma ? 2 : 1); if (isPlanarYUV(c->dstFormat) || (isGray(c->dstFormat) && !isALPHA(c->dstFormat))) { if (!isGray(c->dstFormat)) { |