From 6a9ddfcd96831e1cd39d552a37cc0093e9c91791 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 19 Mar 2024 03:56:11 +0100 Subject: [PATCH] avformat/iamfenc: Align check and error message Reviewed-by: James Almer Signed-off-by: Andreas Rheinhardt --- libavformat/iamfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/iamfenc.c b/libavformat/iamfenc.c index bf4a268c95..5e53a7748f 100644 --- a/libavformat/iamfenc.c +++ b/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); }