Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-26 18:17:04 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-01 15:48:01 +0300
commita86f3e983ec113689af48dd49ae043d85c8dc8bd (patch)
tree6777a9801f8153303a33df1745125cf76e3866cf /libavcodec/g2meet.c
parentbbf8431b1bb947bdb3c9cb34718879ad1fc4e1be (diff)
avcodec/g2meet: Fix undefined NULL + 0
Affected the g2m4 FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/g2meet.c')
-rw-r--r--libavcodec/g2meet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index 68b1b9dc74..da910c1e59 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -1029,7 +1029,7 @@ static int kempf_restore_buf(const uint8_t *src, int len,
else if (npal <= 16) nb = 4;
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))
continue;
for (i = 0; i < width; i++) {