Commit c4281705 authored by Lukasz Marek's avatar Lukasz Marek

lavd/pulse_audio_enc: avoid vars in for()

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
parent c6c70c2b
......@@ -42,11 +42,12 @@ static av_cold int pulse_write_header(AVFormatContext *h)
PulseData *s = h->priv_data;
AVStream *st = NULL;
int ret;
unsigned int i;
pa_sample_spec ss;
pa_buffer_attr attr = { -1, -1, -1, -1, -1 };
const char *stream_name = s->stream_name;
for (unsigned i = 0; i < h->nb_streams; i++) {
for (i = 0; i < h->nb_streams; i++) {
if (h->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
st = h->streams[i];
s->stream_index = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment