diff --git a/libswscale/vscale.c b/libswscale/vscale.c index f4b0b67ed0..ff1988f5ed 100644 --- a/libswscale/vscale.c +++ b/libswscale/vscale.c @@ -239,7 +239,7 @@ void ff_init_vscale_pfn(SwsContext *c, { VScalerContext *lumCtx = NULL; VScalerContext *chrCtx = NULL; - int idx = c->numDesc - (c->is_internal_gamma ? 2 : 1); + int idx = c->numDesc - (c->is_internal_gamma ? 2 : 1); //FIXME avoid hardcoding indexes if (isPlanarYUV(c->dstFormat) || (isGray(c->dstFormat) && !isALPHA(c->dstFormat))) { if (!isGray(c->dstFormat)) {