History

avformat/iamfdec: remove unused variables after recent changes

Fixes -Wunused-but-set-variable warnings

James Almer committed 1 year ago

Commit 36c8eef1 parent 61773e71 file · +1 −4Browse files

Unified · Split

libavformat/iamfdec.c+1−4
@@ -82,7 +82,6 @@ static int iamf_read_header(AVFormatContext *s) · 81 unmodified lines
8282 for (int i = 0; i < iamf->nb_audio_elements; i++) {
8383 IAMFAudioElement *audio_element = iamf->audio_elements[i];
8484 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;
8685
8786 if (!stg)
8887 return AVERROR(ENOMEM);
@@ -93,7 +92,7 @@ static int iamf_read_header(AVFormatContext *s) · 4 unmodified lines
9392 stg->params.iamf_audio_element = audio_element->element;
9493 audio_element->element = NULL;
9594
96− for (int j = 0, k = 0; j < audio_element->nb_substreams; j++) {
95+ for (int j = 0; j < audio_element->nb_substreams; j++) {
9796 IAMFSubStream *substream = &audio_element->substreams[j];
9897 AVStream *st = avformat_new_stream(s, NULL);
9998
@@ -114,8 +113,6 @@ static int iamf_read_header(AVFormatContext *s) · 14 unmodified lines
114113 st->disposition |= AV_DISPOSITION_DEPENDENT;
115114 st->id = substream->audio_substream_id;
116115 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
117−
118− k += 1 + (coupled_substream_count-- > 0);
119116 }
120117 }
121118

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t