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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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