mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavu/slicethread: return ENOSYS rather than EINVAL in the dummy func
EINVAL is the wrong error code here, since the arguments passed to the function are valid. The error is that the function is not implemented in the build, which corresponds to ENOSYS.
This commit is contained in:
parent
ca32d0462c
commit
fdc0bb78fe
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
|
|||
int nb_threads)
|
||||
{
|
||||
*pctx = NULL;
|
||||
return AVERROR(EINVAL);
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue