Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 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

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to