avformat/iamfenc: Align check and error message

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-03-19 03:56:11 +01:00
parent a7ad5d4d10
commit 6a9ddfcd96
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static int iamf_init(AVFormatContext *s)
}
}
if (!s->nb_stream_groups) {
if (s->nb_stream_groups <= 1) {
av_log(s, AV_LOG_ERROR, "There must be at least two stream groups\n");
return AVERROR(EINVAL);
}