Created
August 31, 2016 09:07
-
-
Save BtbN/7d6da23bd5b9bec5e5b3127f85b8c3bb to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c | |
index 8153fde..20c85ce 100644 | |
--- a/libavfilter/drawutils.c | |
+++ b/libavfilter/drawutils.c | |
@@ -251,7 +251,8 @@ void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4 | |
#define EXPAND(compn) \ | |
if (desc->comp[compn].depth > 8) \ | |
color->comp[desc->comp[compn].plane].u16[desc->comp[compn].offset] = \ | |
- color->comp[desc->comp[compn].plane].u8[desc->comp[compn].offset] << (draw->desc->comp[compn].depth - 8) | |
+ color->comp[desc->comp[compn].plane].u8[desc->comp[compn].offset] << \ | |
+ (draw->desc->comp[compn].depth + draw->desc->comp[compn].shift - 8) | |
EXPAND(3); | |
EXPAND(2); | |
EXPAND(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment