mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/cinepakenc: Avoid casting const away
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
941a82b57c
commit
e86b8ca7f1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user