[FFmpeg-cvslog] avformat/options: skip the none type group in stream_group_child_iterate()

James Almer git at videolan.org
Thu Dec 21 15:36:53 EET 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Dec 20 00:28:33 2023 -0300| [061c864a953c3a859d58749d92e91125e9c5c443] | committer: James Almer

avformat/options: skip the none type group in stream_group_child_iterate()

Otherwise the function will not iterate through valid group types.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/options.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/options.c b/libavformat/options.c
index bf6113ca95..73e220bb7d 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -349,6 +349,9 @@ static const AVClass *stream_group_child_iterate(void **opaque)
     const AVClass *ret = NULL;
 
     switch(i) {
+    case AV_STREAM_GROUP_PARAMS_NONE:
+        i++;
+    // fall-through
     case AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT:
         ret = av_iamf_audio_element_get_class();
         break;



More information about the ffmpeg-cvslog mailing list