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

ffmpeg.c:3375:1: start of procedure opt_output_file()
3373. }
3374. 
3375. static void opt_output_file(const char *filename)
      ^
3376. {
3377.     AVFormatContext *oc;

ffmpeg.c:3380:5: 
3378.     int use_video, use_audio, use_subtitle;
3379.     int input_has_video, input_has_audio, input_has_subtitle;
3380.     AVFormatParameters params, *ap = &params;
          ^
3381.     AVOutputFormat *file_oformat;
3382. 

ffmpeg.c:3383:10: Taking false branch
3381.     AVOutputFormat *file_oformat;
3382. 
3383.     if (!strcmp(filename, "-"))
               ^
3384.         filename = "pipe:";
3385. 

ffmpeg.c:3386:5: 
3384.         filename = "pipe:";
3385. 
3386.     oc = avformat_alloc_context();
          ^
3387.     if (!oc) {
3388.         print_error(filename, AVERROR(ENOMEM));

libavformat/options.c:78:1: start of procedure avformat_alloc_context()
  76. }
  77. 
  78. AVFormatContext *avformat_alloc_context(void)
      ^
  79. {
  80.     AVFormatContext *ic;

libavformat/options.c:81:5: 
  79. {
  80.     AVFormatContext *ic;
  81.     ic = av_malloc(sizeof(AVFormatContext));
          ^
  82.     if (!ic) return ic;
  83.     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:82:10: Taking false branch
  80.     AVFormatContext *ic;
  81.     ic = av_malloc(sizeof(AVFormatContext));
  82.     if (!ic) return ic;
               ^
  83.     avformat_get_context_defaults(ic);
  84.     ic->av_class = &av_format_context_class;

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

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

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

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

ffmpeg.c:3387:10: Taking false branch
3385. 
3386.     oc = avformat_alloc_context();
3387.     if (!oc) {
               ^
3388.         print_error(filename, AVERROR(ENOMEM));
3389.         av_exit(1);

ffmpeg.c:3392:9: Taking false branch
3390.     }
3391. 
3392.     if (last_asked_format) {
              ^
3393.         file_oformat = av_guess_format(last_asked_format, NULL, NULL);
3394.         if (!file_oformat) {

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

ffmpeg.c:3401:14: Taking true branch
3399.     } else {
3400.         file_oformat = av_guess_format(NULL, filename, NULL);
3401.         if (!file_oformat) {
                   ^
3402.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
3403.                     filename);

ffmpeg.c:3402:13: 
3400.         file_oformat = av_guess_format(NULL, filename, NULL);
3401.         if (!file_oformat) {
3402.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
                  ^
3403.                     filename);
3404.             av_exit(1);

ffmpeg.c:3404:13: Skipping av_exit(): empty list of specs
3402.             fprintf(stderr, "Unable to find a suitable output format for '%s'\n",
3403.                     filename);
3404.             av_exit(1);
                  ^
3405.         }
3406.     }

ffmpeg.c:3408:5: 
3406.     }
3407. 
3408.     oc->oformat = file_oformat;
          ^
3409.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
3410. 

ffmpeg.c:3409:5: 
3407. 
3408.     oc->oformat = file_oformat;
3409.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
          ^
3410. 
3411.     if (!strcmp(file_oformat->name, "ffm") &&

libavutil/avstring.c:51:1: start of procedure av_strlcpy()
  49. }
  50. 
  51. size_t av_strlcpy(char *dst, const char *src, size_t size)
      ^
  52. {
  53.     size_t len = 0;

libavutil/avstring.c:53:5: 
  51. size_t av_strlcpy(char *dst, const char *src, size_t size)
  52. {
  53.     size_t len = 0;
          ^
  54.     while (++len < size && *src)
  55.         *dst++ = *src++;

libavutil/avstring.c:54:12: Loop condition is true. Entering loop body
  52. {
  53.     size_t len = 0;
  54.     while (++len < size && *src)
                 ^
  55.         *dst++ = *src++;
  56.     if (len <= size)

libavutil/avstring.c:54:28: Loop condition is false. Leaving loop
  52. {
  53.     size_t len = 0;
  54.     while (++len < size && *src)
                                 ^
  55.         *dst++ = *src++;
  56.     if (len <= size)

libavutil/avstring.c:56:9: Taking true branch
  54.     while (++len < size && *src)
  55.         *dst++ = *src++;
  56.     if (len <= size)
              ^
  57.         *dst = 0;
  58.     return len + strlen(src) - 1;

libavutil/avstring.c:57:9: 
  55.         *dst++ = *src++;
  56.     if (len <= size)
  57.         *dst = 0;
              ^
  58.     return len + strlen(src) - 1;
  59. }

libavutil/avstring.c:58:5: 
  56.     if (len <= size)
  57.         *dst = 0;
  58.     return len + strlen(src) - 1;
          ^
  59. }
  60. 

libavutil/avstring.c:59:1: return from a call to av_strlcpy
  57.         *dst = 0;
  58.     return len + strlen(src) - 1;
  59. }
      ^
  60. 
  61. size_t av_strlcat(char *dst, const char *src, size_t size)

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