[FFmpeg-cvslog] avcodec/ftr: use more portable return error code

Paul B Mahol git at videolan.org
Sun Jan 29 14:11:26 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jan 29 13:08:15 2023 +0100| [65c0b169611853195046f885227a8824e6e0b63a] | committer: Paul B Mahol

avcodec/ftr: use more portable return error code

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65c0b169611853195046f885227a8824e6e0b63a
---

 libavcodec/ftr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list