1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-08 22:39:44 +02:00

avcodec/flashsv2enc: Fix undefined NULL + 0

Affected the vsynth*-flashsv2 FATE-tests.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit b7b73e83e3d5c78a5fea96a6bcae02e1f0a5c45f)
This commit is contained in:
Andreas Rheinhardt 2021-03-26 18:35:25 +01:00 committed by Andreas Rheinhardt
parent 3d473a8925
commit 55ad9ece31

View File

@ -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;
}
}
}