avconv.c:3441: error: Null Dereference
  pointer `oc` last assigned on line 3420 could be null and is dereferenced at line 3441, column 5.

avconv.c:3408:1: start of procedure opt_output_file()
3406. }
3407. 
3408. static void opt_output_file(void *optctx, const char *filename)
      ^
3409. {
3410.     OptionsContext *o = optctx;

avconv.c:3410:5: 
3408. static void opt_output_file(void *optctx, const char *filename)
3409. {
3410.     OptionsContext *o = optctx;
          ^
3411.     AVFormatContext *oc;
3412.     int i, err;

avconv.c:3417:10: Taking true branch
3415.     InputStream  *ist;
3416. 
3417.     if (!strcmp(filename, "-"))
               ^
3418.         filename = "pipe:";
3419. 

avconv.c:3418:9: 
3416. 
3417.     if (!strcmp(filename, "-"))
3418.         filename = "pipe:";
              ^
3419. 
3420.     oc = avformat_alloc_context();

avconv.c:3420:5: 
3418.         filename = "pipe:";
3419. 
3420.     oc = avformat_alloc_context();
          ^
3421.     if (!oc) {
3422.         print_error(filename, AVERROR(ENOMEM));

libavformat/options.c:127:1: start of procedure avformat_alloc_context()
  125. }
  126. 
  127. AVFormatContext *avformat_alloc_context(void)
       ^
  128. {
  129.     AVFormatContext *ic;

libavformat/options.c:130:5: 
  128. {
  129.     AVFormatContext *ic;
  130.     ic = av_malloc(sizeof(AVFormatContext));
           ^
  131.     if (!ic) return ic;
  132.     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(size_t size)
        ^
    65. {
    66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
    64. void *av_malloc(size_t 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-32) )
               ^
    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,32,size))
                ^
    84.         ptr = NULL;
    85. #elif HAVE_MEMALIGN

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

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

libavformat/options.c:131:10: Taking true branch
  129.     AVFormatContext *ic;
  130.     ic = av_malloc(sizeof(AVFormatContext));
  131.     if (!ic) return ic;
                ^
  132.     avformat_get_context_defaults(ic);
  133.     return ic;

libavformat/options.c:131:14: 
  129.     AVFormatContext *ic;
  130.     ic = av_malloc(sizeof(AVFormatContext));
  131.     if (!ic) return ic;
                    ^
  132.     avformat_get_context_defaults(ic);
  133.     return ic;

libavformat/options.c:134:1: return from a call to avformat_alloc_context
  132.     avformat_get_context_defaults(ic);
  133.     return ic;
  134. }
       ^
  135. 
  136. const AVClass *avformat_get_class(void)

avconv.c:3421:10: Taking true branch
3419. 
3420.     oc = avformat_alloc_context();
3421.     if (!oc) {
               ^
3422.         print_error(filename, AVERROR(ENOMEM));
3423.         exit_program(1);

avconv.c:3422:9: 
3420.     oc = avformat_alloc_context();
3421.     if (!oc) {
3422.         print_error(filename, AVERROR(ENOMEM));
              ^
3423.         exit_program(1);
3424.     }

cmdutils.c:435:1: start of procedure print_error()
  433. }
  434. 
  435. void print_error(const char *filename, int err)
       ^
  436. {
  437.     char errbuf[128];

cmdutils.c:438:5: 
  436. {
  437.     char errbuf[128];
  438.     const char *errbuf_ptr = errbuf;
           ^
  439. 
  440.     if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)

cmdutils.c:440:9: Taking true branch
  438.     const char *errbuf_ptr = errbuf;
  439. 
  440.     if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
               ^
  441.         errbuf_ptr = strerror(AVUNERROR(err));
  442.     av_log(NULL, AV_LOG_ERROR, "%s: %s\n", filename, errbuf_ptr);

cmdutils.c:441:9: Skipping strerror(): method has no implementation
  439. 
  440.     if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
  441.         errbuf_ptr = strerror(AVUNERROR(err));
               ^
  442.     av_log(NULL, AV_LOG_ERROR, "%s: %s\n", filename, errbuf_ptr);
  443. }

cmdutils.c:442:5: Skipping av_log(): empty list of specs
  440.     if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
  441.         errbuf_ptr = strerror(AVUNERROR(err));
  442.     av_log(NULL, AV_LOG_ERROR, "%s: %s\n", filename, errbuf_ptr);
           ^
  443. }
  444. 

cmdutils.c:443:1: return from a call to print_error
  441.         errbuf_ptr = strerror(AVUNERROR(err));
  442.     av_log(NULL, AV_LOG_ERROR, "%s: %s\n", filename, errbuf_ptr);
  443. }
       ^
  444. 
  445. static int warned_cfg = 0;

avconv.c:3423:9: Skipping exit_program(): empty list of specs
3421.     if (!oc) {
3422.         print_error(filename, AVERROR(ENOMEM));
3423.         exit_program(1);
              ^
3424.     }
3425. 

avconv.c:3426:9: Taking true branch
3424.     }
3425. 
3426.     if (o->format) {
              ^
3427.         file_oformat = av_guess_format(o->format, NULL, NULL);
3428.         if (!file_oformat) {

avconv.c:3427:9: Skipping av_guess_format(): empty list of specs
3425. 
3426.     if (o->format) {
3427.         file_oformat = av_guess_format(o->format, NULL, NULL);
              ^
3428.         if (!file_oformat) {
3429.             av_log(NULL, AV_LOG_FATAL, "Requested output format '%s' is not a suitable output format\n", o->format);

avconv.c:3428:14: Taking false branch
3426.     if (o->format) {
3427.         file_oformat = av_guess_format(o->format, NULL, NULL);
3428.         if (!file_oformat) {
                   ^
3429.             av_log(NULL, AV_LOG_FATAL, "Requested output format '%s' is not a suitable output format\n", o->format);
3430.             exit_program(1);

avconv.c:3441:5: 
3439.     }
3440. 
3441.     oc->oformat = file_oformat;
          ^
3442.     av_strlcpy(oc->filename, filename, sizeof(oc->filename));
3443. 
