aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-19 03:56:11 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-20 10:17:52 +0100
commit6a9ddfcd96831e1cd39d552a37cc0093e9c91791 (patch)
tree08ec40309b9d8fd4ccc25434ff022096e3974c0c
parenta7ad5d4d10ec5846fe2f96cec92dbce62ef185d8 (diff)
downloadffmpeg-6a9ddfcd96831e1cd39d552a37cc0093e9c91791.tar.gz
avformat/iamfenc: Align check and error message
Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/iamfenc.c2
1 files changed, 1 insertions, 1 deletions
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);
}