diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-04-04 11:17:35 +0200 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-04-04 11:17:35 +0200 |
commit | 34ec327f693ac1ad17c522e89ebff2b8c57d9b34 (patch) | |
tree | 70e244e054dba5de9073732d637352b0389c7fc9 | |
parent | 8c5c6871ba677fee59808fa9231e7f39a1cd75f0 (diff) | |
download | ffmpeg-34ec327f693ac1ad17c522e89ebff2b8c57d9b34.tar.gz |
examples/decode_audio: reduce the scope of 2 variables
-rw-r--r-- | doc/examples/decode_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/decode_audio.c b/doc/examples/decode_audio.c index add0e313ae..9cad373047 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) { |