[FFmpeg-cvslog] lavfi/mandelbrot: Output RGB0 instead of RGBA.

Carl Eugen Hoyos git at videolan.org
Fri Oct 2 01:22:21 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Oct  2 01:21:36 2015 +0200| [ac7b1f742324358e38a3354b9a4b4863042dd927] | committer: Carl Eugen Hoyos

lavfi/mandelbrot: Output RGB0 instead of RGBA.

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

 libavfilter/version.h         |    2 +-
 libavfilter/vsrc_mandelbrot.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavfilter/version.h b/libavfilter/version.h
index 670ee4e..73f6fd8 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -31,7 +31,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR   6
 #define LIBAVFILTER_VERSION_MINOR   9
-#define LIBAVFILTER_VERSION_MICRO 100
+#define LIBAVFILTER_VERSION_MICRO 101
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 56d0503..950c5c8 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -149,7 +149,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 static int query_formats(AVFilterContext *ctx)
 {
     static const enum AVPixelFormat pix_fmts[] = {
-        AV_PIX_FMT_BGR32,
+        AV_PIX_FMT_0BGR32,
         AV_PIX_FMT_NONE
     };
 
@@ -379,7 +379,6 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
                     c= lrintf((s->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((s->zyklus[closest_index][1]/closest+1)*127+dv)*256;
                 }
             }
-            c |= 0xFF000000;
             color[x + y*linesize]= c;
             if(next_cidx < s->cache_allocated){
                 s->next_cache[next_cidx  ].p[0]= cr;



More information about the ffmpeg-cvslog mailing list