From b6bb3f244655f3b8b3a81ec3b1ed603621cc5b49 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 31 Jan 2017 22:17:27 +0800 Subject: [PATCH] fix c99 build failed. --- trunk/research/librtmp/srs_ingest_mp4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/research/librtmp/srs_ingest_mp4.c b/trunk/research/librtmp/srs_ingest_mp4.c index 06532d054..6677b9cd7 100644 --- a/trunk/research/librtmp/srs_ingest_mp4.c +++ b/trunk/research/librtmp/srs_ingest_mp4.c @@ -45,14 +45,15 @@ int main(int argc, char** argv) exit(-1); } - for (int opt = 0; opt < argc; opt++) { + int opt; + for (opt = 0; opt < argc; opt++) { srs_human_trace("The argv[%d]=%s", opt, argv[opt]); } // fill the options for mac char* in_file = NULL; char* out_rtmp_url = NULL; - for (int opt = 0; opt < argc - 1; opt++) { + for (opt = 0; opt < argc - 1; opt++) { // ignore all options except -i and -y. char* p = argv[opt];