[FFmpeg-cvslog] avformat/iamfenc: Align check and error message

Andreas Rheinhardt git at videolan.org
Wed Mar 20 11:28:28 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Mar 19 03:56:11 2024 +0100| [6a9ddfcd96831e1cd39d552a37cc0093e9c91791] | committer: Andreas Rheinhardt

avformat/iamfenc: Align check and error message

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a9ddfcd96831e1cd39d552a37cc0093e9c91791
---

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



More information about the ffmpeg-cvslog mailing list