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
82 for (int i = 0; i < iamf->nb_audio_elements; i++) {82 for (int i = 0; i < iamf->nb_audio_elements; i++) {
83 IAMFAudioElement *audio_element = iamf->audio_elements[i];83 IAMFAudioElement *audio_element = iamf->audio_elements[i];
84 AVStreamGroup *stg = avformat_stream_group_create(s, AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT, NULL);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 if (!stg)86 if (!stg)
88 return AVERROR(ENOMEM);87 return AVERROR(ENOMEM);
@@ -93,7 +92,7 @@ static int iamf_read_header(AVFormatContext *s) · 4 unmodified lines
93 stg->params.iamf_audio_element = audio_element->element;92 stg->params.iamf_audio_element = audio_element->element;
94 audio_element->element = NULL;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 IAMFSubStream *substream = &audio_element->substreams[j];96 IAMFSubStream *substream = &audio_element->substreams[j];
98 AVStream *st = avformat_new_stream(s, NULL);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 st->disposition |= AV_DISPOSITION_DEPENDENT;113 st->disposition |= AV_DISPOSITION_DEPENDENT;
115 st->id = substream->audio_substream_id;114 st->id = substream->audio_substream_id;
116 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);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

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