Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-02-16 11:16:32 +0300
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-02-16 11:16:32 +0300
commitd0962160e0767f3fefe5a00b8e16bb3753efa0ad (patch)
treef16c2fa91237b125af229dfe7909907d3b0793c3 /libavfilter/vf_elbg.c
parent3b1d1437a0f3aa4edfed510b1afa0be4ab2589e3 (diff)
lavfi/elbg: Make the pal8 output opaque.
Diffstat (limited to 'libavfilter/vf_elbg.c')
-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];
}