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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user