You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/flashsv2enc: Fix undefined NULL + 0
Affected the vsynth*-flashsv2 FATE-tests. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
committed by
Andreas Rheinhardt
parent
b7565b65b8
commit
b7b73e83e3
@@ -159,7 +159,7 @@ static void init_blocks(FlashSV2Context * s, Block * blocks,
|
|||||||
b->enc = encbuf;
|
b->enc = encbuf;
|
||||||
b->data = databuf;
|
b->data = databuf;
|
||||||
encbuf += b->width * b->height * 3;
|
encbuf += b->width * b->height * 3;
|
||||||
databuf += !databuf ? 0 : b->width * b->height * 6;
|
databuf = databuf ? databuf + b->width * b->height * 6 : NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user