mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
fftools/ffmpeg: remove unncessary casts for *_thread() return values
These functions used to be passed directly to pthread_create(), which required them to return void*. This is no longer the case, so they can return a plain int.
This commit is contained in:
parent
f5d03b972c
commit
2ee9362419
8 changed files with 16 additions and 16 deletions
|
|
@ -2226,7 +2226,7 @@ static void *task_wrapper(void *arg)
|
|||
int ret;
|
||||
int err = 0;
|
||||
|
||||
ret = (intptr_t)task->func(task->func_arg);
|
||||
ret = task->func(task->func_arg);
|
||||
if (ret < 0)
|
||||
av_log(task->func_arg, AV_LOG_ERROR,
|
||||
"Task finished with error code: %d (%s)\n", ret, av_err2str(ret));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue