[FFmpeg-cvslog] lavfi/drawutils: make ff_draw_color() accept a const rgba map

Stefano Sabatini git at videolan.org
Thu Aug 2 12:46:30 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Aug  1 23:52:25 2012 +0200| [3bcde3f06c6ad397cd3b99c786829db132d26c87] | committer: Stefano Sabatini

lavfi/drawutils: make ff_draw_color() accept a const rgba map

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

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

diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 83968ab..0a6435a 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -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];
diff --git a/libavfilter/drawutils.h b/libavfilter/drawutils.h
index 29aa94b..211810a 100644
--- a/libavfilter/drawutils.h
+++ b/libavfilter/drawutils.h
@@ -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.



More information about the ffmpeg-cvslog mailing list