[FFmpeg-cvslog] lavfi/rgbtestsrc: make alpha plane opaque
Stefano Sabatini
git at videolan.org
Sun Jan 15 14:53:18 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jan 15 13:03:15 2012 +0100| [4ee03fef531b259420a4c6182bc68a11028bce6c] | committer: Stefano Sabatini
lavfi/rgbtestsrc: make alpha plane opaque
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ee03fef531b259420a4c6182bc68a11028bce6c
---
libavfilter/vsrc_testsrc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 310f8c8..7336f98 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -454,7 +454,7 @@ static void rgbtest_put_pixel(uint8_t *dst, int dst_linesize,
case PIX_FMT_BGRA:
case PIX_FMT_ARGB:
case PIX_FMT_ABGR:
- v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8));
+ v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255 << (rgba_map[A]*8));
p = dst + 4*x + y*dst_linesize;
AV_WL32(p, v);
break;
More information about the ffmpeg-cvslog
mailing list