aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 22:05:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 22:05:13 +0100
commit9198397115bfef265ebb1ab04e4991defa908d11 (patch)
treee55af2d667c8653b1dff2f284f64165824b970e4 /libavcodec/ffv1enc.c
parent3b3782d74e5a5827e4a52f0be990decd6a303654 (diff)
downloadffmpeg-9198397115bfef265ebb1ab04e4991defa908d11.tar.gz
avcodec/ffv1enc: Fix incompatible pointer type warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r--libavcodec/ffv1enc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 4b16a168db..39a1501fe7 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -1017,7 +1017,7 @@ static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
}
}
-static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride[3], int w, int h)
+static void choose_rct_params(FFV1Context *fs, const uint8_t *src[3], const int stride[3], int w, int h)
{
#define NB_Y_COEFF 15
static const int rct_y_coeff[15][2] = {
@@ -1053,14 +1053,14 @@ static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride
int b, g, r;
int ab, ag, ar;
if (lbd) {
- unsigned v = *((uint32_t*)(src[0] + x*4 + stride[0]*y));
+ unsigned v = *((const uint32_t*)(src[0] + x*4 + stride[0]*y));
b = v & 0xFF;
g = (v >> 8) & 0xFF;
r = (v >> 16) & 0xFF;
} else {
- b = *((uint16_t*)(src[0] + x*2 + stride[0]*y));
- g = *((uint16_t*)(src[1] + x*2 + stride[1]*y));
- r = *((uint16_t*)(src[2] + x*2 + stride[2]*y));
+ b = *((const uint16_t*)(src[0] + x*2 + stride[0]*y));
+ g = *((const uint16_t*)(src[1] + x*2 + stride[1]*y));
+ r = *((const uint16_t*)(src[2] + x*2 + stride[2]*y));
}
ar = r - lastr;