X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflashsv2enc.c;h=00aedf07953d34d92035729b2a71bedaf2330343;hb=0a071f7124beaf0929f772a8618ac1b6c17b0222;hp=430b6806c8828bc2e891592b94d73c867322e500;hpb=9267e2ff0d5b518bcce6236d09f2941b2c1bba84;p=ffmpeg diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 430b6806c88..00aedf07953 100644 --- a/libavcodec/flashsv2enc.c +++ b/libavcodec/flashsv2enc.c @@ -159,7 +159,7 @@ static void init_blocks(FlashSV2Context * s, Block * blocks, b->enc = encbuf; b->data = databuf; encbuf += b->width * b->height * 3; - databuf += !databuf ? 0 : b->width * b->height * 6; + databuf = databuf ? databuf + b->width * b->height * 6 : NULL; } } }