diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-01-15 13:03:15 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-01-15 14:49:30 +0100 |
commit | 4ee03fef531b259420a4c6182bc68a11028bce6c (patch) | |
tree | 8a6080f5f71dd032ca293034c92d0551d94f753e | |
parent | 69224582da0e60558156bab0194a9154f7956233 (diff) | |
download | ffmpeg-4ee03fef531b259420a4c6182bc68a11028bce6c.tar.gz |
lavfi/rgbtestsrc: make alpha plane opaque
-rw-r--r-- | 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 310f8c8bf3..7336f980f7 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; |