[FFmpeg-cvslog] lavd/pulse_audio_enc: avoid vars in for()
Lukasz Marek
git at videolan.org
Sat Oct 26 10:38:50 CEST 2013
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Sat Oct 26 01:42:11 2013 +0200| [c4281705492a1c862a0faff6c3132fbdeb60d35a] | committer: Lukasz Marek
lavd/pulse_audio_enc: avoid vars in for()
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4281705492a1c862a0faff6c3132fbdeb60d35a
---
libavdevice/pulse_audio_enc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 86ef648..b8b0700 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;
More information about the ffmpeg-cvslog
mailing list