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

libavformat/rtsp.c:1774:1: start of procedure sdp_read_header()
1772. }
1773. 
1774. static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap)
      ^
1775. {
1776.     RTSPState *rt = s->priv_data;

libavformat/rtsp.c:1776:5: 
1774. static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap)
1775. {
1776.     RTSPState *rt = s->priv_data;
          ^
1777.     RTSPStream *rtsp_st;
1778.     int size, i, err;

libavformat/rtsp.c:1782:10: 
1780.     char url[1024];
1781. 
1782.     if (!ff_network_init())
               ^
1783.         return AVERROR(EIO);
1784. 

libavformat/network.h:65:1: start of procedure ff_network_init()
  63. int ff_socket_nonblock(int socket, int enable);
  64. 
  65. static inline int ff_network_init(void)
      ^
  66. {
  67. #if HAVE_WINSOCK2_H

libavformat/network.h:72:5: 
  70.         return 0;
  71. #endif
  72.     return 1;
          ^
  73. }
  74. 

libavformat/network.h:73:1: return from a call to ff_network_init
  71. #endif
  72.     return 1;
  73. }
      ^
  74. 
  75. static inline int ff_network_wait_fd(int fd, int write)

libavformat/rtsp.c:1782:10: Taking false branch
1780.     char url[1024];
1781. 
1782.     if (!ff_network_init())
               ^
1783.         return AVERROR(EIO);
1784. 

libavformat/rtsp.c:1787:5: 
1785.     /* read the whole sdp file */
1786.     /* XXX: better loading */
1787.     content = av_malloc(SDP_MAX_SIZE);
          ^
1788.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1789.     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:8: Taking false branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-16) )
             ^
  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,16,size))
              ^
  84.         ptr = NULL;
  85. #elif HAVE_MEMALIGN

libavutil/mem.c:84:9: 
  82. #elif HAVE_POSIX_MEMALIGN
  83.     if (posix_memalign(&ptr,16,size))
  84.         ptr = NULL;
              ^
  85. #elif HAVE_MEMALIGN
  86.     ptr = memalign(16,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:1788:5: Skipping avio_read(): empty list of specs
1786.     /* XXX: better loading */
1787.     content = av_malloc(SDP_MAX_SIZE);
1788.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
          ^
1789.     if (size <= 0) {
1790.         av_free(content);

libavformat/rtsp.c:1789:9: Taking false branch
1787.     content = av_malloc(SDP_MAX_SIZE);
1788.     size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1789.     if (size <= 0) {
              ^
1790.         av_free(content);
1791.         return AVERROR_INVALIDDATA;

libavformat/rtsp.c:1793:5: 
1791.         return AVERROR_INVALIDDATA;
1792.     }
1793.     content[size] ='\0';
          ^
1794. 
1795.     err = ff_sdp_parse(s, content);
