aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-01-29 13:08:15 +0100
committerPaul B Mahol <onemda@gmail.com>2023-01-29 13:09:17 +0100
commit65c0b169611853195046f885227a8824e6e0b63a (patch)
tree3f2165a69f7bac37363dfab122de107527796951
parent7cf161abe5fecf817f2212363181adc4fe3ca32b (diff)
downloadffmpeg-65c0b169611853195046f885227a8824e6e0b63a.tar.gz
avcodec/ftr: use more portable return error code
-rw-r--r--libavcodec/ftr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ftr.c b/libavcodec/ftr.c
index 277b9be5b8..74a2c10b5c 100644
--- a/libavcodec/ftr.c
+++ b/libavcodec/ftr.c
@@ -37,7 +37,7 @@ static av_cold int ftr_init(AVCodecContext *avctx)
if (avctx->ch_layout.nb_channels > 64 ||
avctx->ch_layout.nb_channels <= 0)
- return AVERROR(ENOTSUP);
+ return AVERROR(EINVAL);
s->packet = av_packet_alloc();
if (!s->packet)