libavformat/matroskadec.c:1067: error: Null Dereference
  pointer `track` last assigned on line 1066 could be null and is dereferenced at line 1067, column 5.

libavformat/matroskadec.c:1052:1: start of procedure matroska_add_stream()
1050. }
1051. 
1052. static int
      ^
1053. matroska_add_stream (MatroskaDemuxContext *matroska)
1054. {

libavformat/matroskadec.c:1055:5: 
1053. matroska_add_stream (MatroskaDemuxContext *matroska)
1054. {
1055.     int res = 0;
          ^
1056.     uint32_t id;
1057.     MatroskaTrack *track;

libavformat/matroskadec.c:1060:9: Taking false branch
1058. 
1059.     /* start with the master */
1060.     if ((res = ebml_read_master(matroska, &id)) < 0)
              ^
1061.         return res;
1062. 

libavformat/matroskadec.c:1063:5: Skipping av_log(): empty list of specs
1061.         return res;
1062. 
1063.     av_log(matroska->ctx, AV_LOG_DEBUG, "parsing track, adding stream..,\n");
          ^
1064. 
1065.     /* Allocate a generic track. */

libavformat/matroskadec.c:1066:24: Condition is false
1064. 
1065.     /* Allocate a generic track. */
1066.     track = av_mallocz(MAX_TRACK_SIZE);
                             ^
1067.     track->time_scale = 1.0;
1068.     strcpy(track->language, "eng");

libavformat/matroskadec.c:1066:24: Condition is true
1064. 
1065.     /* Allocate a generic track. */
1066.     track = av_mallocz(MAX_TRACK_SIZE);
                             ^
1067.     track->time_scale = 1.0;
1068.     strcpy(track->language, "eng");

libavformat/matroskadec.c:1066:24: Condition is false
1064. 
1065.     /* Allocate a generic track. */
1066.     track = av_mallocz(MAX_TRACK_SIZE);
                             ^
1067.     track->time_scale = 1.0;
1068.     strcpy(track->language, "eng");

libavformat/matroskadec.c:1066:5: 
1064. 
1065.     /* Allocate a generic track. */
1066.     track = av_mallocz(MAX_TRACK_SIZE);
          ^
1067.     track->time_scale = 1.0;
1068.     strcpy(track->language, "eng");

libavutil/mem.c:132:1: start of procedure av_mallocz()
  130. }
  131. 
  132. void *av_mallocz(unsigned int size)
       ^
  133. {
  134.     void *ptr = av_malloc(size);

libavutil/mem.c:134:5: 
  132. void *av_mallocz(unsigned int size)
  133. {
  134.     void *ptr = av_malloc(size);
           ^
  135.     if (ptr)
  136.         memset(ptr, 0, size);

libavutil/mem.c:42:1: start of procedure av_malloc()
    40.    linker will do it automatically */
    41. 
    42. void *av_malloc(unsigned int size)
        ^
    43. {
    44.     void *ptr;

libavutil/mem.c:50:8: Taking false branch
    48. 
    49.     /* let's disallow possible ambiguous cases */
    50.     if(size > (INT_MAX-16) )
               ^
    51.         return NULL;
    52. 

libavutil/mem.c:61:5: Skipping memalign(): method has no implementation
    59.     ((char*)ptr)[-1]= diff;
    60. #elif defined (HAVE_MEMALIGN)
    61.     ptr = memalign(16,size);
            ^
    62.     /* Why 64?
    63.        Indeed, we should align it:

libavutil/mem.c:91:5: 
    89.     ptr = malloc(size);
    90. #endif
    91.     return ptr;
            ^
    92. }
    93. 

libavutil/mem.c:92:1: return from a call to av_malloc
    90. #endif
    91.     return ptr;
    92. }
        ^
    93. 
    94. void *av_realloc(void *ptr, unsigned int size)

libavutil/mem.c:135:9: Taking false branch
  133. {
  134.     void *ptr = av_malloc(size);
  135.     if (ptr)
               ^
  136.         memset(ptr, 0, size);
  137.     return ptr;

libavutil/mem.c:137:5: 
  135.     if (ptr)
  136.         memset(ptr, 0, size);
  137.     return ptr;
           ^
  138. }
  139. 

libavutil/mem.c:138:1: return from a call to av_mallocz
  136.         memset(ptr, 0, size);
  137.     return ptr;
  138. }
       ^
  139. 
  140. char *av_strdup(const char *s)

libavformat/matroskadec.c:1067:5: 
1065.     /* Allocate a generic track. */
1066.     track = av_mallocz(MAX_TRACK_SIZE);
1067.     track->time_scale = 1.0;
          ^
1068.     strcpy(track->language, "eng");
1069. 
