mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264pred: fix "warning: initialization discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e7692a9bac
commit
aa7d9809c1
@ -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]];
|
||||
|
Loading…
Reference in New Issue
Block a user