diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-16 02:31:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 02:31:01 +0200 |
commit | dfee637ff99a949ead64a4710d4526c164886577 (patch) | |
tree | 94a893140787cf6f97f7162c68e7ad64550d241d /thirdparty/libwebp/src/enc/analysis_enc.c | |
parent | 005b69cf6e276209464cc8c36ebc7376679925b6 (diff) | |
parent | 6ed81249238260358609e2d806daba06831d1b6a (diff) |
Merge pull request #18897 from volzhs/libwebp-1.0.0
Update libwebp to 1.0.0
Diffstat (limited to 'thirdparty/libwebp/src/enc/analysis_enc.c')
-rw-r--r-- | thirdparty/libwebp/src/enc/analysis_enc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/thirdparty/libwebp/src/enc/analysis_enc.c b/thirdparty/libwebp/src/enc/analysis_enc.c index 08f471f5f8..a47ff7d4e8 100644 --- a/thirdparty/libwebp/src/enc/analysis_enc.c +++ b/thirdparty/libwebp/src/enc/analysis_enc.c @@ -434,7 +434,9 @@ typedef struct { } SegmentJob; // main work call -static int DoSegmentsJob(SegmentJob* const job, VP8EncIterator* const it) { +static int DoSegmentsJob(void* arg1, void* arg2) { + SegmentJob* const job = (SegmentJob*)arg1; + VP8EncIterator* const it = (VP8EncIterator*)arg2; int ok = 1; if (!VP8IteratorIsDone(it)) { uint8_t tmp[32 + WEBP_ALIGN_CST]; @@ -462,7 +464,7 @@ static void InitSegmentJob(VP8Encoder* const enc, SegmentJob* const job, WebPGetWorkerInterface()->Init(&job->worker); job->worker.data1 = job; job->worker.data2 = &job->it; - job->worker.hook = (WebPWorkerHook)DoSegmentsJob; + job->worker.hook = DoSegmentsJob; VP8IteratorInit(enc, &job->it); VP8IteratorSetRow(&job->it, start_row); VP8IteratorSetCountDown(&job->it, (end_row - start_row) * enc->mb_w_); |