From: James Almer Date: Fri, 28 Nov 2025 12:51:36 +0000 (-0300) Subject: avformat/iamf_parse: fix compilation error X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/refs/heads/release/7.1 avformat/iamf_parse: fix compilation error Regression since a2a67282859904283f1008e1ce0a7f6bc1e71757. Signed-off-by: James Almer --- diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c index 8ea9616ec7..8fe7e1bb0e 100644 --- a/libavformat/iamf_parse.c +++ b/libavformat/iamf_parse.c @@ -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++) {