avcodec/ftr: use more portable return error code

This commit is contained in:
Paul B Mahol 2023-01-29 13:08:15 +01:00
parent 7cf161abe5
commit 65c0b16961

View File

@ -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)