diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c index 95af3cc7ef..559056a0e8 100644 --- a/libavcodec/cinepakenc.c +++ b/libavcodec/cinepakenc.c @@ -429,7 +429,7 @@ static int encode_codebook(CinepakEncContext *s, int *codebook, int size, // sets out to the sub picture starting at (x,y) in in static void get_sub_picture(CinepakEncContext *s, int x, int y, - uint8_t * in_data[4], int in_linesize[4], + uint8_t *const in_data[4], const int in_linesize[4], uint8_t *out_data[4], int out_linesize[4]) { out_data[0] = in_data[0] + x + y * in_linesize[0]; @@ -1097,7 +1097,7 @@ static int rd_frame(CinepakEncContext *s, const AVFrame *frame, data, linesize); else get_sub_picture(s, 0, y, - (uint8_t **)frame->data, (int *)frame->linesize, + frame->data, frame->linesize, data, linesize); get_sub_picture(s, 0, y, s->last_frame->data, s->last_frame->linesize,