[FFmpeg-cvslog] avformat/iamfdec: remove unused variables after recent changes

James Almer git at videolan.org
Wed Jun 25 02:16:10 EEST 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jun 24 20:15:20 2025 -0300| [36c8eef42c3a5229c17aa4df2c9398b39b99b586] | committer: James Almer

avformat/iamfdec: remove unused variables after recent changes

Fixes -Wunused-but-set-variable warnings

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

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

 libavformat/iamfdec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavformat/iamfdec.c b/libavformat/iamfdec.c
index e7b5bef907..02f01abc6c 100644
--- a/libavformat/iamfdec.c
+++ b/libavformat/iamfdec.c
@@ -82,7 +82,6 @@ static int iamf_read_header(AVFormatContext *s)
     for (int i = 0; i < iamf->nb_audio_elements; i++) {
         IAMFAudioElement *audio_element = iamf->audio_elements[i];
         AVStreamGroup *stg = avformat_stream_group_create(s, AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT, NULL);
-        int coupled_substream_count = audio_element->layers[audio_element->nb_layers - 1].coupled_substream_count;
 
         if (!stg)
             return AVERROR(ENOMEM);
@@ -93,7 +92,7 @@ static int iamf_read_header(AVFormatContext *s)
         stg->params.iamf_audio_element = audio_element->element;
         audio_element->element = NULL;
 
-        for (int j = 0, k = 0; j < audio_element->nb_substreams; j++) {
+        for (int j = 0; j < audio_element->nb_substreams; j++) {
             IAMFSubStream *substream = &audio_element->substreams[j];
             AVStream *st = avformat_new_stream(s, NULL);
 
@@ -114,8 +113,6 @@ static int iamf_read_header(AVFormatContext *s)
                 st->disposition |= AV_DISPOSITION_DEPENDENT;
             st->id = substream->audio_substream_id;
             avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
-
-            k += 1 + (coupled_substream_count-- > 0);
         }
     }
 



More information about the ffmpeg-cvslog mailing list