swscale/vscale: Add fixme comment to "ugly" code
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jan 2016 17:11:22 +0000 (18:11 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jan 2016 20:58:02 +0000 (21:58 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/vscale.c

index f4b0b67..ff1988f 100644 (file)
@@ -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)) {