libavfilter/vsrc_movie.c:140: error: Null Dereference
  pointer `movie->format_ctx` last assigned on line 103 could be null and is dereferenced at line 140, column 10.

libavfilter/vsrc_movie.c:89:1: start of procedure movie_init()
87. };
88. 
89. static av_cold int movie_init(AVFilterContext *ctx)
    ^
90. {
91.     MovieContext *movie = ctx->priv;

libavfilter/vsrc_movie.c:91:5: 
89. static av_cold int movie_init(AVFilterContext *ctx)
90. {
91.     MovieContext *movie = ctx->priv;
        ^
92.     AVInputFormat *iformat = NULL;
93.     AVStream *st;

libavfilter/vsrc_movie.c:92:5: 
90. {
91.     MovieContext *movie = ctx->priv;
92.     AVInputFormat *iformat = NULL;
        ^
93.     AVStream *st;
94.     AVCodec *codec;

libavfilter/vsrc_movie.c:98:5: 
 96.     int64_t timestamp;
 97. 
 98.     av_register_all();
         ^
 99. 
100.     // Try to find the movie format (container)

libavformat/allformats.c:44:1: start of procedure av_register_all()
  42. #define REGISTER_MUXDEMUX(X, x) REGISTER_MUXER(X, x); REGISTER_DEMUXER(X, x)
  43. 
  44. void av_register_all(void)
      ^
  45. {
  46.     static int initialized;

libavformat/allformats.c:48:9: Taking true branch
  46.     static int initialized;
  47. 
  48.     if (initialized)
              ^
  49.         return;
  50.     initialized = 1;

libavformat/allformats.c:49:9: 
  47. 
  48.     if (initialized)
  49.         return;
              ^
  50.     initialized = 1;
  51. 

libavformat/allformats.c:261:1: return from a call to av_register_all
  259.     REGISTER_DEMUXER (YOP,              yop);
  260.     REGISTER_MUXDEMUX(YUV4MPEGPIPE,     yuv4mpegpipe);
  261. }
       ^

libavfilter/vsrc_movie.c:101:15: Condition is true
 99. 
100.     // Try to find the movie format (container)
101.     iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
                   ^
102. 
103.     movie->format_ctx = NULL;

libavfilter/vsrc_movie.c:101:5: 
 99. 
100.     // Try to find the movie format (container)
101.     iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
         ^
102. 
103.     movie->format_ctx = NULL;

libavfilter/vsrc_movie.c:103:5: 
101.     iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
102. 
103.     movie->format_ctx = NULL;
         ^
104.     if ((ret = avformat_open_input(&movie->format_ctx, movie->file_name, iformat, NULL)) < 0) {
105.         av_log(ctx, AV_LOG_ERROR,

libavfilter/vsrc_movie.c:104:9: Taking false branch
102. 
103.     movie->format_ctx = NULL;
104.     if ((ret = avformat_open_input(&movie->format_ctx, movie->file_name, iformat, NULL)) < 0) {
             ^
105.         av_log(ctx, AV_LOG_ERROR,
106.                "Failed to avformat_open_input '%s'\n", movie->file_name);

libavfilter/vsrc_movie.c:109:9: Taking true branch
107.         return ret;
108.     }
109.     if ((ret = avformat_find_stream_info(movie->format_ctx, NULL)) < 0)
             ^
110.         av_log(ctx, AV_LOG_WARNING, "Failed to find stream info\n");
111. 

libavfilter/vsrc_movie.c:110:9: Skipping av_log(): empty list of specs
108.     }
109.     if ((ret = avformat_find_stream_info(movie->format_ctx, NULL)) < 0)
110.         av_log(ctx, AV_LOG_WARNING, "Failed to find stream info\n");
             ^
111. 
112.     // if seeking requested, we execute it

libavfilter/vsrc_movie.c:113:9: Taking false branch
111. 
112.     // if seeking requested, we execute it
113.     if (movie->seek_point > 0) {
             ^
114.         timestamp = movie->seek_point;
115.         // add the stream start time, should it exist

libavfilter/vsrc_movie.c:133:9: Taking false branch
131. 
132.     /* select the video stream */
133.     if ((ret = av_find_best_stream(movie->format_ctx, AVMEDIA_TYPE_VIDEO,
             ^
134.                                    movie->stream_index, -1, NULL, 0)) < 0) {
135.         av_log(ctx, AV_LOG_ERROR, "No video stream with index '%d' found\n",

libavfilter/vsrc_movie.c:139:5: 
137.         return ret;
138.     }
139.     movie->stream_index = ret;
         ^
140.     st = movie->format_ctx->streams[movie->stream_index];
141. 

libavfilter/vsrc_movie.c:140:5: 
138.     }
139.     movie->stream_index = ret;
140.     st = movie->format_ctx->streams[movie->stream_index];
         ^
141. 
142.     /*
