Fixes -Wunused-but-set-variable warnings
Unified · Split
| @@ -82,7 +82,6 @@ static int iamf_read_header(AVFormatContext *s) · 81 unmodified lines | ||
| 82 | 82 | for (int i = 0; i < iamf->nb_audio_elements; i++) { |
| 83 | 83 | IAMFAudioElement *audio_element = iamf->audio_elements[i]; |
| 84 | 84 | AVStreamGroup *stg = avformat_stream_group_create(s, AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT, NULL); |
| 85 | − int coupled_substream_count = audio_element->layers[audio_element->nb_layers - 1].coupled_substream_count; | |
| 86 | 85 | |
| 87 | 86 | if (!stg) |
| 88 | 87 | return AVERROR(ENOMEM); |
| @@ -93,7 +92,7 @@ static int iamf_read_header(AVFormatContext *s) · 4 unmodified lines | ||
| 93 | 92 | stg->params.iamf_audio_element = audio_element->element; |
| 94 | 93 | audio_element->element = NULL; |
| 95 | 94 | |
| 96 | − for (int j = 0, k = 0; j < audio_element->nb_substreams; j++) { | |
| 95 | + for (int j = 0; j < audio_element->nb_substreams; j++) { | |
| 97 | 96 | IAMFSubStream *substream = &audio_element->substreams[j]; |
| 98 | 97 | AVStream *st = avformat_new_stream(s, NULL); |
| 99 | 98 | |
| @@ -114,8 +113,6 @@ static int iamf_read_header(AVFormatContext *s) · 14 unmodified lines | ||
| 114 | 113 | st->disposition |= AV_DISPOSITION_DEPENDENT; |
| 115 | 114 | st->id = substream->audio_substream_id; |
| 116 | 115 | avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); |
| 117 | − | |
| 118 | − k += 1 + (coupled_substream_count-- > 0); | |
| 119 | 116 | } |
| 120 | 117 | } |
| 121 | 118 | |