Commit aa7d9809 authored by Michael Niedermayer's avatar Michael Niedermayer

h264pred: fix "warning: initialization discards const qualifier from pointer target type"

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e7692a9b
...@@ -278,12 +278,12 @@ static void pred4x4_horizontal_up_rv40_nodown_c(uint8_t *src, ...@@ -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, static void pred4x4_tm_vp8_c(uint8_t *src, const uint8_t *topright,
ptrdiff_t stride) 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; uint8_t *top = src-stride;
int y; int y;
for (y = 0; y < 4; 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[0] = cm_in[top[0]];
src[1] = cm_in[top[1]]; src[1] = cm_in[top[1]];
src[2] = cm_in[top[2]]; src[2] = cm_in[top[2]];
...@@ -304,12 +304,12 @@ static void pred16x16_plane_rv40_c(uint8_t *src, ptrdiff_t stride) ...@@ -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) 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; uint8_t *top = src-stride;
int y; int y;
for (y = 0; y < 16; 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[0] = cm_in[top[0]];
src[1] = cm_in[top[1]]; src[1] = cm_in[top[1]];
src[2] = cm_in[top[2]]; src[2] = cm_in[top[2]];
...@@ -386,12 +386,12 @@ static void pred8x8_dc_rv40_c(uint8_t *src, ptrdiff_t stride) ...@@ -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) 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; uint8_t *top = src-stride;
int y; int y;
for (y = 0; y < 8; 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[0] = cm_in[top[0]];
src[1] = cm_in[top[1]]; src[1] = cm_in[top[1]];
src[2] = cm_in[top[2]]; src[2] = cm_in[top[2]];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment