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

libavfilter/vsrc_movie.c:85:1: start of procedure movie_init()
83. };
84. 
85. static av_cold int movie_init(AVFilterContext *ctx)
    ^
86. {
87.     MovieContext *movie = ctx->priv;

libavfilter/vsrc_movie.c:87:5: 
85. static av_cold int movie_init(AVFilterContext *ctx)
86. {
87.     MovieContext *movie = ctx->priv;
        ^
88.     AVInputFormat *iformat = NULL;
89.     AVStream *st;

libavfilter/vsrc_movie.c:88:5: 
86. {
87.     MovieContext *movie = ctx->priv;
88.     AVInputFormat *iformat = NULL;
        ^
89.     AVStream *st;
90.     AVCodec *codec;

libavfilter/vsrc_movie.c:94:5: 
92.     int64_t timestamp;
93. 
94.     av_register_all();
        ^
95. 
96.     // 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:260:1: return from a call to av_register_all
  258.     REGISTER_DEMUXER (YOP,              yop);
  259.     REGISTER_MUXDEMUX(YUV4MPEGPIPE,     yuv4mpegpipe);
  260. }
       ^

libavfilter/vsrc_movie.c:97:15: Condition is true
95. 
96.     // Try to find the movie format (container)
97.     iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
                  ^
98. 
99.     movie->format_ctx = NULL;

libavfilter/vsrc_movie.c:97:5: 
95. 
96.     // Try to find the movie format (container)
97.     iformat = movie->format_name ? av_find_input_format(movie->format_name) : NULL;
        ^
98. 
99.     movie->format_ctx = NULL;

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

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

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

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

libavfilter/vsrc_movie.c:109:9: Taking true branch
107. 
108.     // if seeking requested, we execute it
109.     if (movie->seek_point > 0) {
             ^
110.         timestamp = movie->seek_point;
111.         // add the stream start time, should it exist

libavfilter/vsrc_movie.c:110:9: 
108.     // if seeking requested, we execute it
109.     if (movie->seek_point > 0) {
110.         timestamp = movie->seek_point;
             ^
111.         // add the stream start time, should it exist
112.         if (movie->format_ctx->start_time != AV_NOPTS_VALUE) {

libavfilter/vsrc_movie.c:112:13: 
110.         timestamp = movie->seek_point;
111.         // add the stream start time, should it exist
112.         if (movie->format_ctx->start_time != AV_NOPTS_VALUE) {
                 ^
113.             if (timestamp > INT64_MAX - movie->format_ctx->start_time) {
114.                 av_log(ctx, AV_LOG_ERROR,
