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

libavformat/movenc.c:1128:1: start of procedure mov_write_ctts_tag()
1126. }
1127. 
1128. static int mov_write_ctts_tag(AVIOContext *pb, MOVTrack *track)
      ^
1129. {
1130.     MOVStts *ctts_entries;

libavformat/movenc.c:1131:5: 
1129. {
1130.     MOVStts *ctts_entries;
1131.     uint32_t entries = 0;
          ^
1132.     uint32_t atom_size;
1133.     int i;

libavformat/movenc.c:1135:5: 
1133.     int i;
1134. 
1135.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
          ^
1136.     ctts_entries[0].count = 1;
1137.     ctts_entries[0].duration = track->cluster[0].cts;

libavutil/mem.c:62:1: start of procedure av_malloc()
  60.  * linker will do it automatically. */
  61. 
  62. void *av_malloc(size_t size)
      ^
  63. {
  64.     void *ptr = NULL;

libavutil/mem.c:64:5: 
  62. void *av_malloc(size_t size)
  63. {
  64.     void *ptr = NULL;
          ^
  65. #if CONFIG_MEMALIGN_HACK
  66.     long diff;

libavutil/mem.c:70:9: Taking true branch
  68. 
  69.     /* let's disallow possibly ambiguous cases */
  70.     if (size > (INT_MAX - 32) || !size)
              ^
  71.         return NULL;
  72. 

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

libavutil/mem.c:115:1: return from a call to av_malloc
  113. #endif
  114.     return ptr;
  115. }
       ^
  116. 
  117. void *av_realloc(void *ptr, size_t size)

libavformat/movenc.c:1136:5: 
1134. 
1135.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
1136.     ctts_entries[0].count = 1;
          ^
1137.     ctts_entries[0].duration = track->cluster[0].cts;
1138.     for (i = 1; i < track->entry; i++) {
