OSDN Git Service

rtsp: Fix compiler warning for uninitialized variable
authorJean First <jeanfirst@gmail.com>
Tue, 3 Jan 2012 22:01:28 +0000 (23:01 +0100)
committerMartin Storsjö <martin@martin.st>
Wed, 4 Jan 2012 20:15:42 +0000 (22:15 +0200)
This one won't ever be used uninitialized in practice, but
the compiler doesn't realize it.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c

index fcf168d..2858a9a 100644 (file)
@@ -1103,7 +1103,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
                               int lower_transport, const char *real_challenge)
 {
     RTSPState *rt = s->priv_data;
-    int rtx, j, i, err, interleave = 0;
+    int rtx = 0, j, i, err, interleave = 0;
     RTSPStream *rtsp_st;
     RTSPMessageHeader reply1, *reply = &reply1;
     char cmd[2048];