diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-12-21 12:22:42 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-12-21 12:22:10 -0300 |
commit | 0c03f4c6b9990d22622c58e5e45f9ce7aac939da (patch) | |
tree | d9b289be2a3516d3b1a04d986673aefd589f3f1d | |
parent | 7a9aafde3d957c30d55898da8d6c639991f99f88 (diff) | |
download | ffmpeg-0c03f4c6b9990d22622c58e5e45f9ce7aac939da.tar.gz |
avformat/iamfenc: fix logical coding error
-rw-r--r-- | libavformat/iamfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/iamfenc.c b/libavformat/iamfenc.c index 0a043ce3a0..1de416b663 100644 --- a/libavformat/iamfenc.c +++ b/libavformat/iamfenc.c @@ -88,7 +88,7 @@ static int iamf_init(AVFormatContext *s) if (stg->type == AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION) nb_mix_presentations++; } - if ((nb_audio_elements < 1 && nb_audio_elements > 2) || nb_mix_presentations < 1) { + if ((nb_audio_elements < 1 || nb_audio_elements > 2) || nb_mix_presentations < 1) { av_log(s, AV_LOG_ERROR, "There must be >= 1 and <= 2 IAMF_AUDIO_ELEMENT and at least " "one IAMF_MIX_PRESENTATION stream groups\n"); return AVERROR(EINVAL); |