Commit 6a9ddfcd authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/iamfenc: Align check and error message

Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent a7ad5d4d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment