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

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

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

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

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

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

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

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

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

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

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

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

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

libavformat/rtspdec.c:105:9: 
  103.             break;
  104.         }
  105.         index++;
               ^
  106.     }
  107.     if (!status_messages[index].code)

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

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

libavformat/rtspdec.c:105:9: 
  103.             break;
  104.         }
  105.         index++;
               ^
  106.     }
  107.     if (!status_messages[index].code)

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

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

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

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