diff mbox series

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

Message ID 20231220032833.840-1-jamrial@gmail.com
State Accepted
Commit 061c864a953c3a859d58749d92e91125e9c5c443
Headers show
Series [FFmpeg-devel] avformat/options: skip the none type group in stream_group_child_iterate() | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer Dec. 20, 2023, 3:28 a.m. UTC
Otherwise the function will not iterate through valid group types.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/options.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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;