aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-02-16 09:16:32 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-02-16 09:16:32 +0100
commitd0962160e0767f3fefe5a00b8e16bb3753efa0ad (patch)
treef16c2fa91237b125af229dfe7909907d3b0793c3
parent3b1d1437a0f3aa4edfed510b1afa0be4ab2589e3 (diff)
downloadffmpeg-d0962160e0767f3fefe5a00b8e16bb3753efa0ad.tar.gz
lavfi/elbg: Make the pal8 output opaque.
-rw-r--r--libavfilter/vf_elbg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index b34136bd78..396af82f77 100644
--- a/libavfilter/vf_elbg.c
+++ b/libavfilter/vf_elbg.c
@@ -186,7 +186,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
p0 = (uint8_t *)out->data[0];
for (i = 0; i < elbg->codebook_length; i++) {
- pal[i] = (elbg->codebook[i*3 ] << 16) |
+ pal[i] = 0xFFU << 24 |
+ (elbg->codebook[i*3 ] << 16) |
(elbg->codebook[i*3+1] << 8) |
elbg->codebook[i*3+2];
}