[FFmpeg-cvslog] swscale/vscale: Add fixme comment to "ugly" code

Michael Niedermayer git at videolan.org
Thu Jan 14 22:05:19 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jan 14 18:11:22 2016 +0100| [fe6372bb614db1a8d73514d045c7c7b0b059289a] | committer: Michael Niedermayer

swscale/vscale: Add fixme comment to "ugly" code

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe6372bb614db1a8d73514d045c7c7b0b059289a
---

 libswscale/vscale.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/vscale.c b/libswscale/vscale.c
index f4b0b67..ff1988f 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)) {



More information about the ffmpeg-cvslog mailing list