Commit 34ec327f authored by Clément Bœsch's avatar Clément Bœsch

examples/decode_audio: reduce the scope of 2 variables

parent 8c5c6871
...@@ -97,7 +97,6 @@ int main(int argc, char **argv) ...@@ -97,7 +97,6 @@ int main(int argc, char **argv)
avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f); avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f);
while (avpkt.size > 0) { while (avpkt.size > 0) {
int i, ch;
int got_frame = 0; int got_frame = 0;
if (!decoded_frame) { if (!decoded_frame) {
...@@ -113,6 +112,7 @@ int main(int argc, char **argv) ...@@ -113,6 +112,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
if (got_frame) { if (got_frame) {
int i, ch;
/* if a frame has been decoded, output it */ /* if a frame has been decoded, output it */
int data_size = av_get_bytes_per_sample(c->sample_fmt); int data_size = av_get_bytes_per_sample(c->sample_fmt);
if (data_size < 0) { if (data_size < 0) {
......
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