rtsp: Fix compiler warning for uninitialized variable.
authorJean First <jeanfirst@gmail.com>
Tue, 3 Jan 2012 22:01:28 +0000 (23:01 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 3 Jan 2012 22:01:28 +0000 (23:01 +0100)
Reviewed-by: Martin Storsjö
libavformat/rtsp.c

index 5d6db1b..d32f49e 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];