]> git.sesse.net Git - ffmpeg/commitdiff
avutil/tx: use ENOSYS instead of ENOTSUP
authorJames Almer <jamrial@gmail.com>
Thu, 14 Jan 2021 02:02:19 +0000 (23:02 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 14 Jan 2021 02:02:47 +0000 (23:02 -0300)
It's the standard error code used across the codebase to signal unimplemented
or unsupported features.

Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/tx_template.c

index a91b8f900c8c54ecbd277523a75236240e6449a9..155e879f8e7df524cc88a978b1ba1bd2587ccb04 100644 (file)
@@ -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;