[FFmpeg-devel] [PATCH 3/3] Add const to ff_emulated_edge_mc

David Conrad lessen42
Mon May 24 03:02:49 CEST 2010


---
 libavcodec/dsputil.c |    2 +-
 libavcodec/dsputil.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 63dd940..a09d19d 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -369,7 +369,7 @@ static void draw_edges_c(uint8_t *buf, int wrap, int width, int height, int w)
  * @param w width of the source buffer
  * @param h height of the source buffer
  */
-void ff_emulated_edge_mc(uint8_t *buf, uint8_t *src, int linesize, int block_w, int block_h,
+void ff_emulated_edge_mc(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h,
                                     int src_x, int src_y, int w, int h){
     int x, y;
     int start_y, start_x, end_y, end_x;
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index fd2d07f..d943b84 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -197,7 +197,7 @@ typedef struct ScanTable{
 
 void ff_init_scantable(uint8_t *, ScanTable *st, const uint8_t *src_scantable);
 
-void ff_emulated_edge_mc(uint8_t *buf, uint8_t *src, int linesize,
+void ff_emulated_edge_mc(uint8_t *buf, const uint8_t *src, int linesize,
                          int block_w, int block_h,
                          int src_x, int src_y, int w, int h);
 
-- 
1.7.0.2




More information about the ffmpeg-devel mailing list