aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-02-19 10:43:24 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-24 11:51:41 +0100
commita2fc86378a18b2c2966ce3438df8f27f646438e5 (patch)
tree618d0a53a4985a80652f27ae6c1e06a99ba8e229 /fftools/ffmpeg_mux.c
parent29e1b9d90c23c2c1e377dfec9960a232445acd33 (diff)
downloadffmpeg-a2fc86378a18b2c2966ce3438df8f27f646438e5.tar.gz
fftools/ffmpeg: declare loop indices inside loops
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 5a648c0568..2c01aec665 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -506,7 +506,6 @@ int print_sdp(const char *filename);
int print_sdp(const char *filename)
{
char sdp[16384];
- int i;
int j, ret;
AVIOContext *sdp_pb;
AVFormatContext **avc;
@@ -514,7 +513,7 @@ int print_sdp(const char *filename)
avc = av_malloc_array(nb_output_files, sizeof(*avc));
if (!avc)
return AVERROR(ENOMEM);
- for (i = 0, j = 0; i < nb_output_files; i++) {
+ for (int i = 0, j = 0; i < nb_output_files; i++) {
if (!strcmp(output_files[i]->format->name, "rtp")) {
avc[j] = mux_from_of(output_files[i])->fc;
j++;