avformat/iamfenc: Align check and error message

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.0
Andreas Rheinhardt 12 months ago
parent a7ad5d4d10
commit 6a9ddfcd96
  1. 2
      libavformat/iamfenc.c

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

Loading…
Cancel
Save