[FFmpeg-devel] [PATCH 2/3] avformat/iamfenc: Align check and error message
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Mar 19 05:30:10 EET 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
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);
}
--
2.40.1
More information about the ffmpeg-devel
mailing list