]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/vscale.c
swscale: re-enable gamma
[ffmpeg] / libswscale / vscale.c
index 18d5ad15f4122c43213afec400aaa4b593ef05cd..3d6e81a70f1c905d576cc7028012aeec069fe8ac 100644 (file)
@@ -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)) {