libavformat/movenc.c:1085: error: Null Dereference
  pointer `ctts_entries` last assigned on line 1084 could be null and is dereferenced at line 1085, column 5.

libavformat/movenc.c:1077:1: start of procedure mov_write_ctts_tag()
1075. }
1076. 
1077. static int mov_write_ctts_tag(AVIOContext *pb, MOVTrack *track)
      ^
1078. {
1079.     MOVStts *ctts_entries;

libavformat/movenc.c:1080:5: 
1078. {
1079.     MOVStts *ctts_entries;
1080.     uint32_t entries = 0;
          ^
1081.     uint32_t atom_size;
1082.     int i;

libavformat/movenc.c:1084:5: 
1082.     int i;
1083. 
1084.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
          ^
1085.     ctts_entries[0].count = 1;
1086.     ctts_entries[0].duration = track->cluster[0].cts;

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 true branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if (size > (INT_MAX - 32) || !size)
              ^
  73.         return NULL;
  74. 

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

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/movenc.c:1085:5: 
1083. 
1084.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
1085.     ctts_entries[0].count = 1;
          ^
1086.     ctts_entries[0].duration = track->cluster[0].cts;
1087.     for (i=1; i<track->entry; i++) {
