From 3e6a862603b67de5d25e0950b9b141a9d6f487bf Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 16 Jan 2020 23:35:16 -0500 Subject: [PATCH] libav: require alpha 192 to be visible --- src/lib/libav.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/libav.c b/src/lib/libav.c index b5e05c866..3dd1b7b06 100644 --- a/src/lib/libav.c +++ b/src/lib/libav.c @@ -300,10 +300,11 @@ ncvisual* ncvisual_open_plane(notcurses* nc, const char* filename, return ncv; } -// alpha comes to us 0--255, but we have only 3 alpha values to map them to +// alpha comes to us 0--255, but we have only 3 alpha values to map them to. +// settled on experimentally. static inline bool ffmpeg_trans_p(unsigned char alpha){ - if(alpha < 128){ + if(alpha < 192){ return true; } return false;