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

libavformat/mov.c:3439:9: Call
3437.             av_free(sc->extradata[j]);
3438.         av_freep(&sc->extradata);
3439.         av_freep(&sc->extradata_size);
              ^
3440.     }
3441. 

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:3443:9: Call
3441. 
3442.     if (mov->dv_demux) {
3443.         avformat_free_context(mov->dv_fctx);
              ^
3444.         mov->dv_fctx = NULL;
3445.     }

libavformat/utils.c:2598:1: <LHS trace>
2596. }
2597. 
2598. void avformat_free_context(AVFormatContext *s)
      ^
2599. {
2600.     int i;

libavformat/utils.c:2598:1: Parameter `s->nb_chapters`
  2596. }
  2597. 
  2598. void avformat_free_context(AVFormatContext *s)
        ^
  2599. {
  2600.     int i;

libavformat/utils.c:2619:12: Binary operation: ([-oo, 0] - 1):unsigned32 by call to `avformat_free_context` 
  2617.     av_freep(&s->programs);
  2618.     av_freep(&s->priv_data);
  2619.     while (s->nb_chapters--) {
                   ^
  2620.         av_dict_free(&s->chapters[s->nb_chapters]->metadata);
  2621.         av_free(s->chapters[s->nb_chapters]);
