libavformat/rtsp.c:1969: error: Null Dereference
  pointer `content` last assigned on line 1963 could be null and is dereferenced at line 1969, column 5.

libavformat/rtsp.c:1947:1: start of procedure sdp_read_header()
1945. }
1946. 
1947. static int sdp_read_header(AVFormatContext *s)
      ^
1948. {
1949.     RTSPState *rt = s->priv_data;

libavformat/rtsp.c:1949:5: 
1947. static int sdp_read_header(AVFormatContext *s)
1948. {
1949.     RTSPState *rt = s->priv_data;
          ^
1950.     RTSPStream *rtsp_st;
1951.     int size, i, err;

libavformat/rtsp.c:1955:10: 
1953.     char url[1024];
1954. 
1955.     if (!ff_network_init())
               ^
1956.         return AVERROR(EIO);
1957. 

libavformat/network.c:125:1: start of procedure ff_network_init()
  123. int ff_network_inited_globally;
  124. 
  125. int ff_network_init(void)
       ^
  126. {
  127. #if HAVE_WINSOCK2_H

libavformat/network.c:131:10: Taking true branch
  129. #endif
  130. 
  131.     if (!ff_network_inited_globally)
                ^
  132.         av_log(NULL, AV_LOG_WARNING, "Using network protocols without global "
  133.                                      "network initialization. Please use "

libavformat/network.c:132:9: Skipping av_log(): empty list of specs
  130. 
  131.     if (!ff_network_inited_globally)
  132.         av_log(NULL, AV_LOG_WARNING, "Using network protocols without global "
               ^
  133.                                      "network initialization. Please use "
  134.                                      "avformat_network_init(), this will "

libavformat/network.c:140:5: 
  138.         return 0;
  139. #endif
  140.     return 1;
           ^
  141. }
  142. 

libavformat/network.c:141:1: return from a call to ff_network_init
  139. #endif
  140.     return 1;
  141. }
       ^
  142. 
  143. int ff_network_wait_fd(int fd, int write)

libavformat/rtsp.c:1955:10: Taking false branch
1953.     char url[1024];
1954. 
1955.     if (!ff_network_init())
               ^
1956.         return AVERROR(EIO);
1957. 

libavformat/rtsp.c:1958:9: Taking false branch
1956.         return AVERROR(EIO);
1957. 
1958.     if (s->max_delay < 0) /* Not set by the caller */
              ^
1959.         s->max_delay = DEFAULT_REORDERING_DELAY;
1960. 

libavformat/rtsp.c:1963:5: 
1961.     /* read the whole sdp file */
1962.     /* XXX: better loading */
1963.     content = av_malloc(SDP_MAX_SIZE);
          ^
1964.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1965.     if (size <= 0) {

libavutil/mem.c:64:1: start of procedure av_malloc()
  62.    linker will do it automatically. */
  63. 
  64. void *av_malloc(size_t size)
      ^
  65. {
  66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
  64. void *av_malloc(size_t size)
  65. {
  66.     void *ptr = NULL;
          ^
  67. #if CONFIG_MEMALIGN_HACK
  68.     long diff;

libavutil/mem.c:72:9: Taking false branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if (size > (INT_MAX-32) || !size)
              ^
  73.         return NULL;
  74. 

libavutil/mem.c:72:33: Taking false branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if (size > (INT_MAX-32) || !size)
                                      ^
  73.         return NULL;
  74. 

libavutil/mem.c:83:9: Taking true branch
  81.     ((char*)ptr)[-1]= diff;
  82. #elif HAVE_POSIX_MEMALIGN
  83.     if (posix_memalign(&ptr,32,size))
              ^
  84.         ptr = NULL;
  85. #elif HAVE_ALIGNED_MALLOC

libavutil/mem.c:84:9: 
  82. #elif HAVE_POSIX_MEMALIGN
  83.     if (posix_memalign(&ptr,32,size))
  84.         ptr = NULL;
              ^
  85. #elif HAVE_ALIGNED_MALLOC
  86.     ptr = _aligned_malloc(size, 32);

libavutil/mem.c:116:5: 
  114.     ptr = malloc(size);
  115. #endif
  116.     return ptr;
           ^
  117. }
  118. 

libavutil/mem.c:117:1: return from a call to av_malloc
  115. #endif
  116.     return ptr;
  117. }
       ^
  118. 
  119. void *av_realloc(void *ptr, size_t size)

libavformat/rtsp.c:1964:5: Skipping avio_read(): empty list of specs
1962.     /* XXX: better loading */
1963.     content = av_malloc(SDP_MAX_SIZE);
1964.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
          ^
1965.     if (size <= 0) {
1966.         av_free(content);

libavformat/rtsp.c:1965:9: Taking false branch
1963.     content = av_malloc(SDP_MAX_SIZE);
1964.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1965.     if (size <= 0) {
              ^
1966.         av_free(content);
1967.         return AVERROR_INVALIDDATA;

libavformat/rtsp.c:1969:5: 
1967.         return AVERROR_INVALIDDATA;
1968.     }
1969.     content[size] ='\0';
          ^
1970. 
1971.     err = ff_sdp_parse(s, content);
