aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-13 23:02:19 -0300
committerJames Almer <jamrial@gmail.com>2021-01-13 23:02:47 -0300
commitf6477ac9f4daf3de2604d1cc5b27e66952d610b1 (patch)
tree13028388ad84c6ce83b7fc8732cb27b3d2ee70b2
parent151b41c8cc55eec5e7bf8896c21cdc0c1f99b3cf (diff)
downloadffmpeg-f6477ac9f4daf3de2604d1cc5b27e66952d610b1.tar.gz
avutil/tx: use ENOSYS instead of ENOTSUP
It's the standard error code used across the codebase to signal unimplemented or unsupported features. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavutil/tx_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c
index a91b8f900c..155e879f8e 100644
--- a/libavutil/tx_template.c
+++ b/libavutil/tx_template.c
@@ -684,7 +684,7 @@ int TX_NAME(ff_tx_init_mdct_fft)(AVTXContext *s, av_tx_fn *tx,
* direct 3, 5 and 15 transforms as they're too niche. */
if (len > 1 || m == 1) {
if (is_mdct && (l & 1)) /* Odd (i)MDCTs are not supported yet */
- return AVERROR(ENOTSUP);
+ return AVERROR(ENOSYS);
s->n = l;
s->m = 1;
*tx = naive_fft;