[FFmpeg-cvslog] lavfi/elbg: Make the pal8 output opaque.

Carl Eugen Hoyos git at videolan.org
Tue Feb 16 09:17:47 CET 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Feb 16 09:16:32 2016 +0100| [d0962160e0767f3fefe5a00b8e16bb3753efa0ad] | committer: Carl Eugen Hoyos

lavfi/elbg: Make the pal8 output opaque.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0962160e0767f3fefe5a00b8e16bb3753efa0ad
---

 libavfilter/vf_elbg.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index b34136b..396af82 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];
         }



More information about the ffmpeg-cvslog mailing list