]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/drawutils: make ff_draw_color() accept a const rgba map
authorStefano Sabatini <stefasab@gmail.com>
Wed, 1 Aug 2012 21:52:25 +0000 (23:52 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 2 Aug 2012 10:32:48 +0000 (12:32 +0200)
libavfilter/drawutils.c
libavfilter/drawutils.h

index 83968abf7d19ba0a030a8fce30c76585b6cf36d2..0a6435a2994a2fc191bff7c2d0fbae2f810550cb 100644 (file)
@@ -173,7 +173,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags)
     return 0;
 }
 
-void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, uint8_t rgba[4])
+void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4])
 {
     unsigned i;
     uint8_t rgba_map[4];
index 29aa94b0fb6efaace3f399f078aab2395395cc00..211810a203e5b1f7b9d9f2e2238c2a9021cff052 100644 (file)
@@ -79,7 +79,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags);
 /**
  * Prepare a color.
  */
-void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, uint8_t rgba[4]);
+void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4]);
 
 /**
  * Copy a rectangle from an image to another.