diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-03 03:12:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-03 03:14:09 +0200 |
commit | aa7d9809c10c537786c1cc505790a4fc91e9d613 (patch) | |
tree | 5c23017e863a0a80d59d8d59e7ab4f31d201a869 /libavcodec/h264pred.c | |
parent | e7692a9bac234112b3a9bf00d0cfce88a527588f (diff) | |
download | ffmpeg-aa7d9809c10c537786c1cc505790a4fc91e9d613.tar.gz |
h264pred: fix "warning: initialization discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264pred.c')
-rw-r--r-- | libavcodec/h264pred.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/h264pred.c b/libavcodec/h264pred.c index e5f1f5ae61..ed4f287eaf 100644 --- a/libavcodec/h264pred.c +++ b/libavcodec/h264pred.c @@ -278,12 +278,12 @@ static void pred4x4_horizontal_up_rv40_nodown_c(uint8_t *src, static void pred4x4_tm_vp8_c(uint8_t *src, const uint8_t *topright, ptrdiff_t stride) { - uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; + const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; uint8_t *top = src-stride; int y; for (y = 0; y < 4; y++) { - uint8_t *cm_in = cm + src[-1]; + const uint8_t *cm_in = cm + src[-1]; src[0] = cm_in[top[0]]; src[1] = cm_in[top[1]]; src[2] = cm_in[top[2]]; @@ -304,12 +304,12 @@ static void pred16x16_plane_rv40_c(uint8_t *src, ptrdiff_t stride) static void pred16x16_tm_vp8_c(uint8_t *src, ptrdiff_t stride) { - uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; + const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; uint8_t *top = src-stride; int y; for (y = 0; y < 16; y++) { - uint8_t *cm_in = cm + src[-1]; + const uint8_t *cm_in = cm + src[-1]; src[0] = cm_in[top[0]]; src[1] = cm_in[top[1]]; src[2] = cm_in[top[2]]; @@ -386,12 +386,12 @@ static void pred8x8_dc_rv40_c(uint8_t *src, ptrdiff_t stride) static void pred8x8_tm_vp8_c(uint8_t *src, ptrdiff_t stride) { - uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; + const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP - src[-1-stride]; uint8_t *top = src-stride; int y; for (y = 0; y < 8; y++) { - uint8_t *cm_in = cm + src[-1]; + const uint8_t *cm_in = cm + src[-1]; src[0] = cm_in[top[0]]; src[1] = cm_in[top[1]]; src[2] = cm_in[top[2]]; |