libavformat/mov.c:3210: error: Integer Overflow L1
  ([-oo, 0] - 1):unsigned32 by call to `avformat_free_context`.

libavformat/mov.c:3206:9: Call
3204.         av_freep(&sc->stps_data);
3205.         av_freep(&sc->rap_group);
3206.         av_freep(&sc->display_matrix);
              ^
3207.     }
3208. 

libavutil/mem.c:207:26: Assignment
  205. 
  206.     memcpy(&val, arg, sizeof(val));
  207.     memcpy(arg, &(void *){ NULL }, sizeof(val));
                                ^
  208.     av_free(val);
  209. }

libavformat/mov.c:3210:9: Call
3208. 
3209.     if (mov->dv_demux) {
3210.         avformat_free_context(mov->dv_fctx);
              ^
3211.         mov->dv_fctx = NULL;
3212.     }

libavformat/utils.c:2432:1: <LHS trace>
2430. }
2431. 
2432. void avformat_free_context(AVFormatContext *s)
      ^
2433. {
2434.     int i, j;

libavformat/utils.c:2432:1: Parameter `s->nb_chapters`
  2430. }
  2431. 
  2432. void avformat_free_context(AVFormatContext *s)
        ^
  2433. {
  2434.     int i, j;

libavformat/utils.c:2475:12: Binary operation: ([-oo, 0] - 1):unsigned32 by call to `avformat_free_context` 
  2473.     av_freep(&s->programs);
  2474.     av_freep(&s->priv_data);
  2475.     while (s->nb_chapters--) {
                   ^
  2476.         av_dict_free(&s->chapters[s->nb_chapters]->metadata);
  2477.         av_free(s->chapters[s->nb_chapters]);
