From 915be6bf8fa540948b70516403dd069a30478136 Mon Sep 17 00:00:00 2001
From: hanishkvc <hanishkvc@gmail.com>
Date: Fri, 26 Jun 2020 15:38:07 +0530
Subject: [PATCH 03/15] Fix oversight wrt compare, some dbug prints

Because of the goof up with compare, the detile_intelx was not
getting called.
---
 libavfilter/vf_fbdetile.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_fbdetile.c b/libavfilter/vf_fbdetile.c
index 313963643d..5c4adbf01c 100644
--- a/libavfilter/vf_fbdetile.c
+++ b/libavfilter/vf_fbdetile.c
@@ -84,6 +84,8 @@ static int config_props(AVFilterLink *inlink)
 
     fbdetile->width = inlink->w;
     fbdetile->height = inlink->h;
+    fprintf(stderr,"DBUG:fbtile:config_props: %d x %d\n", fbdetile->width, fbdetile->height);
+
     return 0;
 }
 
@@ -96,6 +98,7 @@ static void detile_intelx(AVFilterContext *ctx, int w, int h,
     int tileH = 8;
     int numHTiles = w/tileW;
 
+    fprintf(stderr,"DBUG:fbtile:intelx: w%dxh%d, dL%d, sL%d\n", w, h, dstLineSize, srcLineSize);
     int sO = 0;
     int dX = 0;
     int dY = 0;
@@ -136,7 +139,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     }
     av_frame_copy_props(out, in);
 
-    if (fbdetile->type = TYPE_INTELX) {
+    if (fbdetile->type == TYPE_INTELX) {
         detile_intelx(ctx, fbdetile->width, fbdetile->height,
                       out->data[0], out->linesize[0],
                       in->data[0], in->linesize[0]);
-- 
2.20.1

