summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-07 16:43:03 +0200
committerAnton Khirnov <anton@khirnov.net>2021-08-29 18:45:04 +0200
commitfdc0bb78feb7a4684dd958d2538a0974c12b12cd (patch)
tree9f9d9e39feab7381b8c75d423a4a9e6246167405
parentca32d0462cd9a2d161be036fc45dc429013d0840 (diff)
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.
-rw-r--r--libavutil/slicethread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/slicethread.c b/libavutil/slicethread.c
index f928a5cf00..867ce32238 100644
--- a/libavutil/slicethread.c
+++ b/libavutil/slicethread.c
@@ -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)