diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-10-26 01:42:11 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-10-26 01:58:18 +0200 |
commit | c4281705492a1c862a0faff6c3132fbdeb60d35a (patch) | |
tree | 5d8f985a12b8e99a3434a6e89f4fc08a5608b799 /libavdevice/pulse_audio_enc.c | |
parent | c6c70c2bf76cbec073c97f92dea2fe1fbcf6665c (diff) | |
download | ffmpeg-c4281705492a1c862a0faff6c3132fbdeb60d35a.tar.gz |
lavd/pulse_audio_enc: avoid vars in for()
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_enc.c')
-rw-r--r-- | libavdevice/pulse_audio_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index 86ef6488c0..b8b0700597 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -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; |