ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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)

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to