avformat/iamf_parse: fix compilation error release/7.1
authorJames Almer <jamrial@gmail.com>
Fri, 28 Nov 2025 12:51:36 +0000 (09:51 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 28 Nov 2025 12:51:36 +0000 (09:51 -0300)
Regression since a2a67282859904283f1008e1ce0a7f6bc1e71757.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/iamf_parse.c

index 8ea9616ec71e8bedaf791d40a1acccd6ca5a9bbf..8fe7e1bb0e844c557928a602aa0eb6b60c137fa8 100644 (file)
@@ -398,7 +398,7 @@ static int scalable_channel_layout_config(void *s, AVIOContext *pb,
                                                           .nb_channels = substream_count +
                                                                          coupled_substream_count };
 
-        if (i && ch_layout.nb_channels <= audio_element->element->layers[i-1]->ch_layout.nb_channels)
+        if (i && layer->ch_layout.nb_channels <= audio_element->element->layers[i-1]->ch_layout.nb_channels)
             return AVERROR_INVALIDDATA;
 
         for (int j = 0; j < substream_count; j++) {