[FFmpeg-cvslog] avcodec/snow: Make block argumrnt of ff_snow_pred_block() const
Michael Niedermayer
git at videolan.org
Mon Sep 22 18:16:34 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 22 18:06:56 2014 +0200| [3a7f9db180d97bd0b9f096a725a96e76c709b42e] | committer: Michael Niedermayer
avcodec/snow: Make block argumrnt of ff_snow_pred_block() const
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a7f9db180d97bd0b9f096a725a96e76c709b42e
---
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 5660eba..3701707 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 b6a8bf4..6a3e763 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 */
More information about the ffmpeg-cvslog
mailing list