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

libavformat/rtsp.c:1693:1: start of procedure sdp_read_header()
1691. #define SDP_MAX_SIZE 8192
1692. 
1693. static int sdp_read_header(AVFormatContext *s,
      ^
1694.                            AVFormatParameters *ap)
1695. {

libavformat/rtsp.c:1696:5: 
1694.                            AVFormatParameters *ap)
1695. {
1696.     RTSPState *rt = s->priv_data;
          ^
1697.     RTSPStream *rtsp_st;
1698.     int size, i, err;

libavformat/rtsp.c:1704:5: 
1702.     /* read the whole sdp file */
1703.     /* XXX: better loading */
1704.     content = av_malloc(SDP_MAX_SIZE);
          ^
1705.     size = get_buffer(s->pb, content, SDP_MAX_SIZE - 1);
1706.     if (size <= 0) {

libavutil/mem.c:47:1: start of procedure av_malloc()
  45.    linker will do it automatically. */
  46. 
  47. void *av_malloc(unsigned int size)
      ^
  48. {
  49.     void *ptr = NULL;

libavutil/mem.c:49:5: 
  47. void *av_malloc(unsigned int size)
  48. {
  49.     void *ptr = NULL;
          ^
  50. #if CONFIG_MEMALIGN_HACK
  51.     long diff;

libavutil/mem.c:55:8: Taking false branch
  53. 
  54.     /* let's disallow possible ambiguous cases */
  55.     if(size > (INT_MAX-16) )
             ^
  56.         return NULL;
  57. 

libavutil/mem.c:66:9: Taking true branch
  64.     ((char*)ptr)[-1]= diff;
  65. #elif HAVE_POSIX_MEMALIGN
  66.     if (posix_memalign(&ptr,16,size))
              ^
  67.         ptr = NULL;
  68. #elif HAVE_MEMALIGN

libavutil/mem.c:67:9: 
  65. #elif HAVE_POSIX_MEMALIGN
  66.     if (posix_memalign(&ptr,16,size))
  67.         ptr = NULL;
              ^
  68. #elif HAVE_MEMALIGN
  69.     ptr = memalign(16,size);

libavutil/mem.c:99:5: 
   97.     ptr = malloc(size);
   98. #endif
   99.     return ptr;
           ^
  100. }
  101. 

libavutil/mem.c:100:1: return from a call to av_malloc
   98. #endif
   99.     return ptr;
  100. }
       ^
  101. 
  102. void *av_realloc(void *ptr, unsigned int size)

libavformat/rtsp.c:1705:5: Skipping get_buffer(): empty list of specs
1703.     /* XXX: better loading */
1704.     content = av_malloc(SDP_MAX_SIZE);
1705.     size = get_buffer(s->pb, content, SDP_MAX_SIZE - 1);
          ^
1706.     if (size <= 0) {
1707.         av_free(content);

libavformat/rtsp.c:1706:9: Taking false branch
1704.     content = av_malloc(SDP_MAX_SIZE);
1705.     size = get_buffer(s->pb, content, SDP_MAX_SIZE - 1);
1706.     if (size <= 0) {
              ^
1707.         av_free(content);
1708.         return AVERROR_INVALIDDATA;

libavformat/rtsp.c:1710:5: 
1708.         return AVERROR_INVALIDDATA;
1709.     }
1710.     content[size] ='\0';
          ^
1711. 
1712.     sdp_parse(s, content);
