1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avcodec/g2meet: Fix undefined NULL + 0

Affected the g2m4 FATE-test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-03-26 16:17:04 +01:00 committed by Andreas Rheinhardt
parent bbf8431b1b
commit a86f3e983e

View File

@ -1029,7 +1029,7 @@ static int kempf_restore_buf(const uint8_t *src, int len,
else if (npal <= 16) nb = 4; else if (npal <= 16) nb = 4;
else nb = 8; else nb = 8;
for (j = 0; j < height; j++, dst += stride, jpeg_tile += tile_stride) { for (j = 0; j < height; j++, dst += stride, jpeg_tile = FF_PTR_ADD(jpeg_tile, tile_stride)) {
if (get_bits(&gb, 8)) if (get_bits(&gb, 8))
continue; continue;
for (i = 0; i < width; i++) { for (i = 0; i < width; i++) {