ffmpeg.c:3681: error: Null Dereference
  pointer `file_oformat` last assigned on line 3670 could be null and is dereferenced at line 3681, column 17.

ffmpeg.c:3645:1: start of procedure opt_output_file()
3643. }
3644. 
3645. static void opt_output_file(const char *filename)
      ^
3646. {
3647.     AVFormatContext *oc;

ffmpeg.c:3650:5: 
3648.     int err, use_video, use_audio, use_subtitle;
3649.     int input_has_video, input_has_audio, input_has_subtitle;
3650.     AVFormatParameters params, *ap = &params;
          ^
3651.     AVOutputFormat *file_oformat;
3652. 

ffmpeg.c:3653:10: Taking false branch
3651.     AVOutputFormat *file_oformat;
3652. 
3653.     if (!strcmp(filename, "-"))
               ^
3654.         filename = "pipe:";
3655. 

ffmpeg.c:3656:5: 
3654.         filename = "pipe:";
3655. 
3656.     oc = avformat_alloc_context();
          ^
3657.     if (!oc) {
3658.         print_error(filename, AVERROR(ENOMEM));

libavformat/options.c:81:1: start of procedure avformat_alloc_context()
  79. }
  80. 
  81. AVFormatContext *avformat_alloc_context(void)
      ^
  82. {
  83.     AVFormatContext *ic;

libavformat/options.c:84:5: 
  82. {
  83.     AVFormatContext *ic;
  84.     ic = av_malloc(sizeof(AVFormatContext));
          ^
  85.     if (!ic) return ic;
  86.     avformat_get_context_defaults(ic);

libavutil/mem.c:64:1: start of procedure av_malloc()
    62.    linker will do it automatically. */
    63. 
    64. void *av_malloc(unsigned int size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(unsigned int size)
    65. {
    66.     void *ptr = NULL;
            ^
    67. #if CONFIG_MEMALIGN_HACK
    68.     long diff;

libavutil/mem.c:72:8: Taking false branch
    70. 
    71.     /* let's disallow possible ambiguous cases */
    72.     if(size > (INT_MAX-16) )
               ^
    73.         return NULL;
    74. 

libavutil/mem.c:83:9: Taking false branch
    81.     ((char*)ptr)[-1]= diff;
    82. #elif HAVE_POSIX_MEMALIGN
    83.     if (posix_memalign(&ptr,16,size))
                ^
    84.         ptr = NULL;
    85. #elif HAVE_MEMALIGN

libavutil/mem.c:116:5: 
    114.     ptr = malloc(size);
    115. #endif
    116.     return ptr;
             ^
    117. }
    118. 

libavutil/mem.c:117:1: return from a call to av_malloc
    115. #endif
    116.     return ptr;
    117. }
         ^
    118. 
    119. void *av_realloc(void *ptr, unsigned int size)

libavformat/options.c:85:10: Taking false branch
  83.     AVFormatContext *ic;
  84.     ic = av_malloc(sizeof(AVFormatContext));
  85.     if (!ic) return ic;
               ^
  86.     avformat_get_context_defaults(ic);
  87.     ic->av_class = &av_format_context_class;

libavformat/options.c:86:5: Skipping avformat_get_context_defaults(): empty list of specs
  84.     ic = av_malloc(sizeof(AVFormatContext));
  85.     if (!ic) return ic;
  86.     avformat_get_context_defaults(ic);
          ^
  87.     ic->av_class = &av_format_context_class;
  88.     return ic;

libavformat/options.c:87:5: 
  85.     if (!ic) return ic;
  86.     avformat_get_context_defaults(ic);
  87.     ic->av_class = &av_format_context_class;
          ^
  88.     return ic;
  89. }

libavformat/options.c:88:5: 
  86.     avformat_get_context_defaults(ic);
  87.     ic->av_class = &av_format_context_class;
  88.     return ic;
          ^
  89. }
  90. 

libavformat/options.c:89:1: return from a call to avformat_alloc_context
  87.     ic->av_class = &av_format_context_class;
  88.     return ic;
  89. }
      ^
  90. 
  91. #if LIBAVFORMAT_VERSION_MAJOR < 53

ffmpeg.c:3657:10: Taking false branch
3655. 
3656.     oc = avformat_alloc_context();
3657.     if (!oc) {
               ^
3658.         print_error(filename, AVERROR(ENOMEM));
3659.         ffmpeg_exit(1);

ffmpeg.c:3662:9: Taking false branch
3660.     }
3661. 
3662.     if (last_asked_format) {
              ^
3663.         file_oformat = av_guess_format(last_asked_format, NULL, NULL);
3664.         if (!file_oformat) {

ffmpeg.c:3670:9: Skipping av_guess_format(): empty list of specs
3668.         last_asked_format = NULL;
3669.     } else {
3670.         file_oformat = av_guess_format(NULL, filename, NULL);
              ^
3671.         if (!file_oformat) {
3672.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",

ffmpeg.c:3671:14: Taking true branch
3669.     } else {
3670.         file_oformat = av_guess_format(NULL, filename, NULL);
3671.         if (!file_oformat) {
                   ^
3672.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
3673.                     filename);

ffmpeg.c:3672:13: 
3670.         file_oformat = av_guess_format(NULL, filename, NULL);
3671.         if (!file_oformat) {
3672.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
                  ^
3673.                     filename);
3674.             ffmpeg_exit(1);

ffmpeg.c:3674:13: Skipping ffmpeg_exit(): empty list of specs
3672.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
3673.                     filename);
3674.             ffmpeg_exit(1);
                  ^
3675.         }
3676.     }

ffmpeg.c:3678:5: 
3676.     }
3677. 
3678.     oc->oformat = file_oformat;
          ^
3679.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
3680. 

ffmpeg.c:3679:5: 
3677. 
3678.     oc->oformat = file_oformat;
3679.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
          ^
3680. 
3681.     if (!strcmp(file_oformat->name, "ffm") &&

libavutil/avstring.c:64:1: start of procedure av_strlcpy()
  62. }
  63. 
  64. size_t av_strlcpy(char *dst, const char *src, size_t size)
      ^
  65. {
  66.     size_t len = 0;

libavutil/avstring.c:66:5: 
  64. size_t av_strlcpy(char *dst, const char *src, size_t size)
  65. {
  66.     size_t len = 0;
          ^
  67.     while (++len < size && *src)
  68.         *dst++ = *src++;

libavutil/avstring.c:67:12: Loop condition is true. Entering loop body
  65. {
  66.     size_t len = 0;
  67.     while (++len < size && *src)
                 ^
  68.         *dst++ = *src++;
  69.     if (len <= size)

libavutil/avstring.c:67:28: Loop condition is false. Leaving loop
  65. {
  66.     size_t len = 0;
  67.     while (++len < size && *src)
                                 ^
  68.         *dst++ = *src++;
  69.     if (len <= size)

libavutil/avstring.c:69:9: Taking true branch
  67.     while (++len < size && *src)
  68.         *dst++ = *src++;
  69.     if (len <= size)
              ^
  70.         *dst = 0;
  71.     return len + strlen(src) - 1;

libavutil/avstring.c:70:9: 
  68.         *dst++ = *src++;
  69.     if (len <= size)
  70.         *dst = 0;
              ^
  71.     return len + strlen(src) - 1;
  72. }

libavutil/avstring.c:71:5: 
  69.     if (len <= size)
  70.         *dst = 0;
  71.     return len + strlen(src) - 1;
          ^
  72. }
  73. 

libavutil/avstring.c:72:1: return from a call to av_strlcpy
  70.         *dst = 0;
  71.     return len + strlen(src) - 1;
  72. }
      ^
  73. 
  74. size_t av_strlcat(char *dst, const char *src, size_t size)

ffmpeg.c:3681:10: 
3679.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
3680. 
3681.     if (!strcmp(file_oformat->name, "ffm") &&
               ^
3682.         av_strstart(filename, "http:", NULL)) {
3683.         /* special case for files sent to ffserver: we get the stream
