ffmpeg | branch: master | Clément Bœsch <cboe...@gopro.com> | Tue Apr 4 11:17:35 2017 +0200| [34ec327f693ac1ad17c522e89ebff2b8c57d9b34] | committer: Clément Bœsch
examples/decode_audio: reduce the scope of 2 variables > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34ec327f693ac1ad17c522e89ebff2b8c57d9b34 --- doc/examples/decode_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/decode_audio.c b/doc/examples/decode_audio.c index add0e31..9cad373 100644 --- a/doc/examples/decode_audio.c +++ b/doc/examples/decode_audio.c @@ -97,7 +97,6 @@ int main(int argc, char **argv) avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f); while (avpkt.size > 0) { - int i, ch; int got_frame = 0; if (!decoded_frame) { @@ -113,6 +112,7 @@ int main(int argc, char **argv) exit(1); } if (got_frame) { + int i, ch; /* if a frame has been decoded, output it */ int data_size = av_get_bytes_per_sample(c->sample_fmt); if (data_size < 0) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog