libavfilter/vsrc_movie.c:188: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `avformat_close_input`.

libavfilter/vsrc_movie.c:186:5: Call
184.     MovieContext *movie = ctx->priv;
185. 
186.     avcodec_free_context(&movie->codec_ctx);
         ^
187.     if (movie->format_ctx)
188.         avformat_close_input(&movie->format_ctx);

libavcodec/options.c:150:5: Call
  148.         return;
  149. 
  150.     avcodec_close(avctx);
           ^
  151. 
  152.     av_freep(&avctx->extradata);

libavcodec/utils.c:1663:9: Call
    1661. #if FF_API_CODED_FRAME
    1662. FF_DISABLE_DEPRECATION_WARNINGS
    1663.         av_frame_free(&avctx->coded_frame);
                  ^
    1664. FF_ENABLE_DEPRECATION_WARNINGS
    1665. #endif

libavutil/frame.c:80:1: Parameter `(*frame)->sample_aspect_ratio.num`
      78. }
      79. 
      80. void av_frame_free(AVFrame **frame)
          ^
      81. {
      82.     if (!frame || !*frame)

libavfilter/vsrc_movie.c:188:9: Call
186.     avcodec_free_context(&movie->codec_ctx);
187.     if (movie->format_ctx)
188.         avformat_close_input(&movie->format_ctx);
             ^
189.     av_frame_free(&movie->frame);
190. }

libavformat/utils.c:2630:1: Parameter `(*ps)->nb_programs`
  2628. }
  2629. 
  2630. void avformat_close_input(AVFormatContext **ps)
        ^
  2631. {
  2632.     AVFormatContext *s = *ps;

libavformat/utils.c:2645:5: Call
  2643.             s->iformat->read_close(s);
  2644. 
  2645.     avformat_free_context(s);
            ^
  2646. 
  2647.     *ps = NULL;

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_programs`
    2596. }
    2597. 
    2598. void avformat_free_context(AVFormatContext *s)
          ^
    2599. {
    2600.     int i;

libavformat/utils.c:2612:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_close_input` 
    2610.         free_stream(&s->streams[i]);
    2611. 
    2612.     for (i = s->nb_programs - 1; i >= 0; i--) {
                   ^
    2613.         av_dict_free(&s->programs[i]->metadata);
    2614.         av_freep(&s->programs[i]->stream_index);

void avformat_free_context(AVFormatContext *s)
{
    int i;
    if (!s)
        return;
    av_opt_free(s);
    if (s->iformat && s->iformat->priv_class && s->priv_data)
        av_opt_free(s->priv_data);
    for (i = 0; i < s->nb_streams; i++)
        free_stream(&s->streams[i]);
    for (i = s->nb_programs - 1; i >= 0; i--) {
        av_dict_free(&s->programs[i]->metadata);
        av_freep(&s->programs[i]->stream_index);
        av_freep(&s->programs[i]);
    }
    av_freep(&s->programs);
    av_freep(&s->priv_data);
    while (s->nb_chapters--) {
        av_dict_free(&s->chapters[s->nb_chapters]->metadata);
        av_free(s->chapters[s->nb_chapters]);
    }
    av_freep(&s->chapters);
    av_dict_free(&s->metadata);
    av_freep(&s->streams);
    av_freep(&s->internal);
    av_free(s);
}
['static av_cold void uninit(AVFilterContext *ctx)\n{\n    MovieContext *movie = ctx->priv;\n    avcodec_free_context(&movie->codec_ctx);\n    if (movie->format_ctx)\n        avformat_close_input(&movie->format_ctx);\n    av_frame_free(&movie->frame);\n}', 'void avcodec_free_context(AVCodecContext **pavctx)\n{\n    AVCodecContext *avctx = *pavctx;\n    if (!avctx)\n        return;\n    avcodec_close(avctx);\n    av_freep(&avctx->extradata);\n    av_freep(&avctx->subtitle_header);\n    av_freep(pavctx);\n}', 'int avcodec_close(AVCodecContext *avctx)\n{\n    int i;\n    if (avcodec_is_open(avctx)) {\n        FramePool *pool = avctx->internal->pool;\n        if (HAVE_THREADS && avctx->internal->thread_ctx)\n            ff_thread_free(avctx);\n        if (avctx->codec && avctx->codec->close)\n            avctx->codec->close(avctx);\n        av_frame_free(&avctx->internal->to_free);\n        for (i = 0; i < FF_ARRAY_ELEMS(pool->pools); i++)\n            av_buffer_pool_uninit(&pool->pools[i]);\n        av_freep(&avctx->internal->pool);\n        if (avctx->hwaccel && avctx->hwaccel->uninit)\n            avctx->hwaccel->uninit(avctx);\n        av_freep(&avctx->internal->hwaccel_priv_data);\n        av_freep(&avctx->internal);\n    }\n    for (i = 0; i < avctx->nb_coded_side_data; i++)\n        av_freep(&avctx->coded_side_data[i].data);\n    av_freep(&avctx->coded_side_data);\n    avctx->nb_coded_side_data = 0;\n    av_buffer_unref(&avctx->hw_frames_ctx);\n    if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)\n        av_opt_free(avctx->priv_data);\n    av_opt_free(avctx);\n    av_freep(&avctx->priv_data);\n    if (av_codec_is_encoder(avctx->codec)) {\n        av_freep(&avctx->extradata);\n#if FF_API_CODED_FRAME\nFF_DISABLE_DEPRECATION_WARNINGS\n        av_frame_free(&avctx->coded_frame);\nFF_ENABLE_DEPRECATION_WARNINGS\n#endif\n    }\n    avctx->codec = NULL;\n    avctx->active_thread_type = 0;\n    return 0;\n}', 'void av_frame_free(AVFrame **frame)\n{\n    if (!frame || !*frame)\n        return;\n    av_frame_unref(*frame);\n    av_freep(frame);\n}', 'void avformat_close_input(AVFormatContext **ps)\n{\n    AVFormatContext *s = *ps;\n    AVIOContext *pb    = s->pb;\n    if ((s->iformat && s->iformat->flags & AVFMT_NOFILE) ||\n        (s->flags & AVFMT_FLAG_CUSTOM_IO))\n        pb = NULL;\n    flush_packet_queue(s);\n    if (s->iformat)\n        if (s->iformat->read_close)\n            s->iformat->read_close(s);\n    avformat_free_context(s);\n    *ps = NULL;\n    avio_close(pb);\n}', 'void avformat_free_context(AVFormatContext *s)\n{\n    int i;\n    if (!s)\n        return;\n    av_opt_free(s);\n    if (s->iformat && s->iformat->priv_class && s->priv_data)\n        av_opt_free(s->priv_data);\n    for (i = 0; i < s->nb_streams; i++)\n        free_stream(&s->streams[i]);\n    for (i = s->nb_programs - 1; i >= 0; i--) {\n        av_dict_free(&s->programs[i]->metadata);\n        av_freep(&s->programs[i]->stream_index);\n        av_freep(&s->programs[i]);\n    }\n    av_freep(&s->programs);\n    av_freep(&s->priv_data);\n    while (s->nb_chapters--) {\n        av_dict_free(&s->chapters[s->nb_chapters]->metadata);\n        av_free(s->chapters[s->nb_chapters]);\n    }\n    av_freep(&s->chapters);\n    av_dict_free(&s->metadata);\n    av_freep(&s->streams);\n    av_freep(&s->internal);\n    av_free(s);\n}']