Skip to content
Snippets Groups Projects
Commit a95fdac4 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/ffv1enc: do not offset null pointers

parent b1d12509
No related branches found
No related tags found
No related merge requests found
...@@ -1007,8 +1007,8 @@ static int encode_slice(AVCodecContext *c, void *arg) ...@@ -1007,8 +1007,8 @@ static int encode_slice(AVCodecContext *c, void *arg)
int ret; int ret;
RangeCoder c_bak = fs->c; RangeCoder c_bak = fs->c;
const uint8_t *planes[3] = {p->data[0] + ps*x + y*p->linesize[0], 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[1] ? p->data[1] + ps*x + y*p->linesize[1] : NULL,
p->data[2] + ps*x + y*p->linesize[2]}; p->data[2] ? p->data[2] + ps*x + y*p->linesize[2] : NULL};
fs->slice_coding_mode = 0; fs->slice_coding_mode = 0;
if (f->version > 3) { if (f->version > 3) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment