mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avcodec/ffv1enc: do not offset null pointers
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b1d1250938
commit
a95fdac4c6
@ -1007,8 +1007,8 @@ static int encode_slice(AVCodecContext *c, void *arg)
|
||||
int ret;
|
||||
RangeCoder c_bak = fs->c;
|
||||
const uint8_t *planes[3] = {p->data[0] + ps*x + y*p->linesize[0],
|
||||
p->data[1] + ps*x + y*p->linesize[1],
|
||||
p->data[2] + ps*x + y*p->linesize[2]};
|
||||
p->data[1] ? p->data[1] + ps*x + y*p->linesize[1] : NULL,
|
||||
p->data[2] ? p->data[2] + ps*x + y*p->linesize[2] : NULL};
|
||||
|
||||
fs->slice_coding_mode = 0;
|
||||
if (f->version > 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user