OSDN Git Service

doc/examples/http_multiclient: fix mixed declarations and code
authorClément Bœsch <u@pkh.me>
Fri, 30 Sep 2016 17:33:35 +0000 (19:33 +0200)
committerClément Bœsch <u@pkh.me>
Fri, 30 Sep 2016 17:35:52 +0000 (19:35 +0200)
doc/examples/http_multiclient.c

index a48d36f..dde39f0 100644 (file)
@@ -97,11 +97,11 @@ end:
 
 int main(int argc, char **argv)
 {
-    av_log_set_level(AV_LOG_TRACE);
     AVDictionary *options = NULL;
     AVIOContext *client = NULL, *server = NULL;
     const char *in_uri, *out_uri;
     int ret, pid;
+    av_log_set_level(AV_LOG_TRACE);
     if (argc < 3) {
         printf("usage: %s input http://hostname[:port]\n"
                "API example program to serve http to multiple clients.\n"