summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-10-28 18:49:30 +0200
committerClément Bœsch <u@pkh.me>2017-10-28 18:49:49 +0200
commit1d348dd03fb485b9c62904734cde11a2f4813f37 (patch)
treecfa232ec6887376fff920ca1650412d4b9094559 /libavfilter
parent93a1aac44198a7d27e427090e3749aa923a78eaa (diff)
lavfi/paletteuse: fix debug_kdtree after aba926e7d
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_paletteuse.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c
index 84c31de3be..ed80ab04d5 100644
--- a/libavfilter/vf_paletteuse.c
+++ b/libavfilter/vf_paletteuse.c
@@ -506,15 +506,16 @@ static void disp_node(AVBPrint *buf,
const uint32_t fontcolor = node->val[1] > 0x50 &&
node->val[2] > 0x50 &&
node->val[3] > 0x50 ? 0 : 0xffffff;
+ const int rgb_comp = node->split - 1;
av_bprintf(buf, "%*cnode%d ["
"label=\"%c%02X%c%02X%c%02X%c\" "
"fillcolor=\"#%02x%02x%02x\" "
"fontcolor=\"#%06"PRIX32"\"]\n",
depth*INDENT, ' ', node->palette_id,
- "[ "[node->split], node->val[1],
- "][ "[node->split], node->val[2],
- " ]["[node->split], node->val[3],
- " ]"[node->split],
+ "[ "[rgb_comp], node->val[1],
+ "][ "[rgb_comp], node->val[2],
+ " ]["[rgb_comp], node->val[3],
+ " ]"[rgb_comp],
node->val[1], node->val[2], node->val[3],
fontcolor);
if (parent_id != -1)