mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
avformat/iamfenc: fix logical coding error
This commit is contained in:
parent
7a9aafde3d
commit
0c03f4c6b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user