diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-22 18:06:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-22 18:06:56 +0200 |
commit | 3a7f9db180d97bd0b9f096a725a96e76c709b42e (patch) | |
tree | 4cefc1ee3dbd2439b35047d05563c2d4558cbe37 | |
parent | 3c4fc6a78251970bb0565913645054e562987f77 (diff) | |
download | ffmpeg-3a7f9db180d97bd0b9f096a725a96e76c709b42e.tar.gz |
avcodec/snow: Make block argumrnt of ff_snow_pred_block() const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/snow.c | 2 | ||||
-rw-r--r-- | libavcodec/snow.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 5660eba90d..3701707787 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -324,7 +324,7 @@ static void mc_block(Plane *p, uint8_t *dst, const uint8_t *src, int stride, int } } -void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, ptrdiff_t stride, int sx, int sy, int b_w, int b_h, BlockNode *block, int plane_index, int w, int h){ +void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, ptrdiff_t stride, int sx, int sy, int b_w, int b_h, const BlockNode *block, int plane_index, int w, int h){ if(block->type & BLOCK_INTRA){ int x, y; const unsigned color = block->color[plane_index]; diff --git a/libavcodec/snow.h b/libavcodec/snow.h index b6a8bf4d7f..6a3e763a4a 100644 --- a/libavcodec/snow.h +++ b/libavcodec/snow.h @@ -231,7 +231,7 @@ void ff_snow_reset_contexts(SnowContext *s); int ff_snow_alloc_blocks(SnowContext *s); int ff_snow_frame_start(SnowContext *s); void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, ptrdiff_t stride, - int sx, int sy, int b_w, int b_h, BlockNode *block, + int sx, int sy, int b_w, int b_h, const BlockNode *block, int plane_index, int w, int h); int ff_snow_get_buffer(SnowContext *s, AVFrame *frame); /* common inline functions */ |