Commit d0962160 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavfi/elbg: Make the pal8 output opaque.

parent 3b1d1437
...@@ -186,7 +186,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -186,7 +186,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
p0 = (uint8_t *)out->data[0]; p0 = (uint8_t *)out->data[0];
for (i = 0; i < elbg->codebook_length; i++) { 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+1] << 8) |
elbg->codebook[i*3+2]; elbg->codebook[i*3+2];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment