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

libavformat/rtsp.c:1869:1: start of procedure sdp_read_header()
1867. }
1868. 
1869. static int sdp_read_header(AVFormatContext *s)
      ^
1870. {
1871.     RTSPState *rt = s->priv_data;

libavformat/rtsp.c:1871:5: 
1869. static int sdp_read_header(AVFormatContext *s)
1870. {
1871.     RTSPState *rt = s->priv_data;
          ^
1872.     RTSPStream *rtsp_st;
1873.     int size, i, err;

libavformat/rtsp.c:1877:10: 
1875.     char url[1024];
1876. 
1877.     if (!ff_network_init())
               ^
1878.         return AVERROR(EIO);
1879. 

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

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

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

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

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

libavformat/rtsp.c:1877:10: Taking false branch
1875.     char url[1024];
1876. 
1877.     if (!ff_network_init())
               ^
1878.         return AVERROR(EIO);
1879. 

libavformat/rtsp.c:1880:9: Taking false branch
1878.         return AVERROR(EIO);
1879. 
1880.     if (s->max_delay < 0) /* Not set by the caller */
              ^
1881.         s->max_delay = DEFAULT_REORDERING_DELAY;
1882. 

libavformat/rtsp.c:1885:5: 
1883.     /* read the whole sdp file */
1884.     /* XXX: better loading */
1885.     content = av_malloc(SDP_MAX_SIZE);
          ^
1886.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1887.     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:71:5: 
  69. #endif
  70. 
  71.     assert(size);
          ^
  72. 
  73.     /* let's disallow possible ambiguous cases */

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

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

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

libavutil/mem.c:86:9: 
  84. #elif HAVE_POSIX_MEMALIGN
  85.     if (posix_memalign(&ptr,32,size))
  86.         ptr = NULL;
              ^
  87. #elif HAVE_MEMALIGN
  88.     ptr = memalign(32,size);

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:1886:5: Skipping avio_read(): empty list of specs
1884.     /* XXX: better loading */
1885.     content = av_malloc(SDP_MAX_SIZE);
1886.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
          ^
1887.     if (size <= 0) {
1888.         av_free(content);

libavformat/rtsp.c:1887:9: Taking false branch
1885.     content = av_malloc(SDP_MAX_SIZE);
1886.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1887.     if (size <= 0) {
              ^
1888.         av_free(content);
1889.         return AVERROR_INVALIDDATA;

libavformat/rtsp.c:1891:5: 
1889.         return AVERROR_INVALIDDATA;
1890.     }
1891.     content[size] ='\0';
          ^
1892. 
1893.     err = ff_sdp_parse(s, content);
