From 3a7f9db180d97bd0b9f096a725a96e76c709b42e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 22 Sep 2014 18:06:56 +0200 Subject: [PATCH] avcodec/snow: Make block argumrnt of ff_snow_pred_block() const Signed-off-by: Michael Niedermayer --- libavcodec/snow.c | 2 +- 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 */