mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-16 04:11:12 +00:00
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>
This commit is contained in:
parent
151b41c8cc
commit
f6477ac9f4
@ -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. */
|
* direct 3, 5 and 15 transforms as they're too niche. */
|
||||||
if (len > 1 || m == 1) {
|
if (len > 1 || m == 1) {
|
||||||
if (is_mdct && (l & 1)) /* Odd (i)MDCTs are not supported yet */
|
if (is_mdct && (l & 1)) /* Odd (i)MDCTs are not supported yet */
|
||||||
return AVERROR(ENOTSUP);
|
return AVERROR(ENOSYS);
|
||||||
s->n = l;
|
s->n = l;
|
||||||
s->m = 1;
|
s->m = 1;
|
||||||
*tx = naive_fft;
|
*tx = naive_fft;
|
||||||
|
Loading…
Reference in New Issue
Block a user