1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-07-16 22:42:38 +02: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:
Anton Khirnov
2024-02-22 16:02:21 +01:00
parent f5d03b972c
commit 2ee9362419
8 changed files with 16 additions and 16 deletions

View File

@ -675,7 +675,7 @@ static int demux_thread_init(DemuxThreadContext *dt)
return 0;
}
static void *input_thread(void *arg)
static int input_thread(void *arg)
{
Demuxer *d = arg;
InputFile *f = &d->f;
@ -780,7 +780,7 @@ static void *input_thread(void *arg)
finish:
demux_thread_uninit(&dt);
return (void*)(intptr_t)ret;
return ret;
}
static void demux_final_stats(Demuxer *d)