diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-02-22 16:02:21 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-03-13 08:01:15 +0100 |
commit | 2ee9362419bc49da21a0c4c99596a7c7897899ab (patch) | |
tree | e36e03255f1324b3776a95caefb4fb30e4e02eed /fftools/ffmpeg_enc.c | |
parent | f5d03b972c49323a0cb03195d596aaae0ab397b1 (diff) | |
download | ffmpeg-2ee9362419bc49da21a0c4c99596a7c7897899ab.tar.gz |
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.
Diffstat (limited to 'fftools/ffmpeg_enc.c')
-rw-r--r-- | fftools/ffmpeg_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index bdba50df03..1ddef46d03 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -870,7 +870,7 @@ fail: return AVERROR(ENOMEM); } -void *encoder_thread(void *arg) +int encoder_thread(void *arg) { OutputStream *ost = arg; Encoder *e = ost->enc; @@ -948,5 +948,5 @@ void *encoder_thread(void *arg) finish: enc_thread_uninit(&et); - return (void*)(intptr_t)ret; + return ret; } |