libavformat/rtspdec.c:135: error: Null Dereference
  pointer `null` is dereferenced by call to `rtsp_send_reply()` at line 135, column 9.

libavformat/rtspdec.c:123:1: start of procedure check_sessionid()
121. }
122. 
123. static inline int check_sessionid(AVFormatContext *s,
     ^
124.                                   RTSPMessageHeader *request)
125. {

libavformat/rtspdec.c:126:5: 
124.                                   RTSPMessageHeader *request)
125. {
126.     RTSPState *rt = s->priv_data;
         ^
127.     unsigned char *session_id = rt->session_id;
128.     if (!session_id[0]) {

libavformat/rtspdec.c:127:5: 
125. {
126.     RTSPState *rt = s->priv_data;
127.     unsigned char *session_id = rt->session_id;
         ^
128.     if (!session_id[0]) {
129.         av_log(s, AV_LOG_WARNING, "There is no session-id at the moment\n");

libavformat/rtspdec.c:128:10: Taking false branch
126.     RTSPState *rt = s->priv_data;
127.     unsigned char *session_id = rt->session_id;
128.     if (!session_id[0]) {
              ^
129.         av_log(s, AV_LOG_WARNING, "There is no session-id at the moment\n");
130.         return 0;

libavformat/rtspdec.c:132:9: Taking true branch
130.         return 0;
131.     }
132.     if (strcmp(session_id, request->session_id)) {
             ^
133.         av_log(s, AV_LOG_ERROR, "Unexpected session-id %s\n",
134.                request->session_id);

libavformat/rtspdec.c:133:9: Skipping av_log(): empty list of specs
131.     }
132.     if (strcmp(session_id, request->session_id)) {
133.         av_log(s, AV_LOG_ERROR, "Unexpected session-id %s\n",
             ^
134.                request->session_id);
135.         rtsp_send_reply(s, RTSP_STATUS_SESSION, NULL, request->seq);

libavformat/rtspdec.c:135:9: 
133.         av_log(s, AV_LOG_ERROR, "Unexpected session-id %s\n",
134.                request->session_id);
135.         rtsp_send_reply(s, RTSP_STATUS_SESSION, NULL, request->seq);
             ^
136.         return AVERROR_STREAM_NOT_FOUND;
137.     }

libavformat/rtspdec.c:96:1: start of procedure rtsp_send_reply()
  94. }
  95. 
  96. static int rtsp_send_reply(AVFormatContext *s, enum RTSPStatusCode code,
      ^
  97.                            const char *extracontent, uint16_t seq)
  98. {

libavformat/rtspdec.c:99:5: 
   97.                            const char *extracontent, uint16_t seq)
   98. {
   99.     RTSPState *rt = s->priv_data;
           ^
  100.     char message[4096];
  101.     int index = 0;

libavformat/rtspdec.c:101:5: 
   99.     RTSPState *rt = s->priv_data;
  100.     char message[4096];
  101.     int index = 0;
           ^
  102.     while (status_messages[index].code) {
  103.         if (status_messages[index].code == code) {

libavformat/rtspdec.c:102:12: Loop condition is true. Entering loop body
  100.     char message[4096];
  101.     int index = 0;
  102.     while (status_messages[index].code) {
                  ^
  103.         if (status_messages[index].code == code) {
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",

libavformat/rtspdec.c:103:13: Taking false branch
  101.     int index = 0;
  102.     while (status_messages[index].code) {
  103.         if (status_messages[index].code == code) {
                   ^
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",
  105.                      code, status_messages[index].message);

libavformat/rtspdec.c:108:9: 
  106.             break;
  107.         }
  108.         index++;
               ^
  109.     }
  110.     if (!status_messages[index].code)

libavformat/rtspdec.c:102:12: Loop condition is true. Entering loop body
  100.     char message[4096];
  101.     int index = 0;
  102.     while (status_messages[index].code) {
                  ^
  103.         if (status_messages[index].code == code) {
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",

libavformat/rtspdec.c:103:13: Taking false branch
  101.     int index = 0;
  102.     while (status_messages[index].code) {
  103.         if (status_messages[index].code == code) {
                   ^
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",
  105.                      code, status_messages[index].message);

libavformat/rtspdec.c:108:9: 
  106.             break;
  107.         }
  108.         index++;
               ^
  109.     }
  110.     if (!status_messages[index].code)

libavformat/rtspdec.c:102:12: Loop condition is true. Entering loop body
  100.     char message[4096];
  101.     int index = 0;
  102.     while (status_messages[index].code) {
                  ^
  103.         if (status_messages[index].code == code) {
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",

libavformat/rtspdec.c:103:13: Taking false branch
  101.     int index = 0;
  102.     while (status_messages[index].code) {
  103.         if (status_messages[index].code == code) {
                   ^
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",
  105.                      code, status_messages[index].message);

libavformat/rtspdec.c:108:9: 
  106.             break;
  107.         }
  108.         index++;
               ^
  109.     }
  110.     if (!status_messages[index].code)

libavformat/rtspdec.c:102:12: Loop condition is false. Leaving loop
  100.     char message[4096];
  101.     int index = 0;
  102.     while (status_messages[index].code) {
                  ^
  103.         if (status_messages[index].code == code) {
  104.             snprintf(message, sizeof(message), "RTSP/1.0 %d %s\r\n",

libavformat/rtspdec.c:110:10: Taking true branch
  108.         index++;
  109.     }
  110.     if (!status_messages[index].code)
                ^
  111.         return AVERROR(EINVAL);
  112.     av_strlcatf(message, sizeof(message), "CSeq: %d\r\n", seq);

libavformat/rtspdec.c:111:9: 
  109.     }
  110.     if (!status_messages[index].code)
  111.         return AVERROR(EINVAL);
               ^
  112.     av_strlcatf(message, sizeof(message), "CSeq: %d\r\n", seq);
  113.     av_strlcatf(message, sizeof(message), "Server: %s\r\n", LIBAVFORMAT_IDENT);

libavformat/rtspdec.c:121:1: return from a call to rtsp_send_reply
  119. 
  120.     return 0;
  121. }
       ^
  122. 
  123. static inline int check_sessionid(AVFormatContext *s,
