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

libavformat/movenc.c:724:1: start of procedure mov_write_ctts_tag()
722. }
723. 
724. static int mov_write_ctts_tag(ByteIOContext *pb, MOVTrack *track)
     ^
725. {
726.     MOVStts *ctts_entries;

libavformat/movenc.c:727:5: 
725. {
726.     MOVStts *ctts_entries;
727.     uint32_t entries = 0;
         ^
728.     uint32_t atom_size;
729.     int i;

libavformat/movenc.c:731:5: 
729.     int i;
730. 
731.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
         ^
732.     ctts_entries[0].count = 1;
733.     ctts_entries[0].duration = track->cluster[0].cts;

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

libavutil/mem.c:45:5: 
  43. void *av_malloc(unsigned int size)
  44. {
  45.     void *ptr = NULL;
          ^
  46. #ifdef CONFIG_MEMALIGN_HACK
  47.     long diff;

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

libavutil/mem.c:52:9: 
  50.     /* let's disallow possible ambiguous cases */
  51.     if(size > (INT_MAX-16) )
  52.         return NULL;
              ^
  53. 
  54. #ifdef CONFIG_MEMALIGN_HACK

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

libavformat/movenc.c:732:5: 
730. 
731.     ctts_entries = av_malloc((track->entry + 1) * sizeof(*ctts_entries)); /* worst case */
732.     ctts_entries[0].count = 1;
         ^
733.     ctts_entries[0].duration = track->cluster[0].cts;
734.     for (i=1; i<track->entry; i++) {
