diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index abb4876e00..e85d798f44 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1403,6 +1403,8 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, char cmd[2048]; const char *trans_pref; + memset(&reply1, 0, sizeof(reply1)); + if (rt->transport == RTSP_TRANSPORT_RDT) trans_pref = "x-pn-tng"; else if (rt->transport == RTSP_TRANSPORT_RAW)