avconv.c:3421: error: Null Dereference
  pointer `st` last assigned on line 3407 could be null and is dereferenced at line 3421, column 9.

avconv.c:3404:1: start of procedure new_output_stream()
3402. }
3403. 
3404. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3405. {
3406.     OutputStream *ost;

avconv.c:3407:5: 
3405. {
3406.     OutputStream *ost;
3407.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3408.     int idx      = oc->nb_streams - 1, ret = 0;
3409.     char *bsf = NULL, *next, *codec_tag = NULL;

libavformat/utils.c:2735:1: start of procedure avformat_new_stream()
  2733. #endif
  2734. 
  2735. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2736. {
  2737.     AVStream *st;

libavformat/utils.c:2741:9: Taking true branch
  2739.     AVStream **streams;
  2740. 
  2741.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2742.         return NULL;
  2743.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2742:9: 
  2740. 
  2741.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2742.         return NULL;
                ^
  2743.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2744.     if (!streams)

libavformat/utils.c:2783:1: return from a call to avformat_new_stream
  2781.     s->streams[s->nb_streams++] = st;
  2782.     return st;
  2783. }
        ^
  2784. 
  2785. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3408:5: 
3406.     OutputStream *ost;
3407.     AVStream *st = avformat_new_stream(oc, NULL);
3408.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3409.     char *bsf = NULL, *next, *codec_tag = NULL;
3410.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3409:5: 
3407.     AVStream *st = avformat_new_stream(oc, NULL);
3408.     int idx      = oc->nb_streams - 1, ret = 0;
3409.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3410.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3411.     double qscale = -1;

avconv.c:3410:5: 
3408.     int idx      = oc->nb_streams - 1, ret = 0;
3409.     char *bsf = NULL, *next, *codec_tag = NULL;
3410.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3411.     double qscale = -1;
3412.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3411:5: 
3409.     char *bsf = NULL, *next, *codec_tag = NULL;
3410.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3411.     double qscale = -1;
          ^
3412.     char *buf = NULL, *arg = NULL, *preset = NULL;
3413.     AVIOContext *s = NULL;

avconv.c:3412:5: 
3410.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3411.     double qscale = -1;
3412.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3413.     AVIOContext *s = NULL;
3414. 

avconv.c:3413:5: 
3411.     double qscale = -1;
3412.     char *buf = NULL, *arg = NULL, *preset = NULL;
3413.     AVIOContext *s = NULL;
          ^
3414. 
3415.     if (!st) {

avconv.c:3415:10: Taking true branch
3413.     AVIOContext *s = NULL;
3414. 
3415.     if (!st) {
               ^
3416.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3417.         exit_program(1);

avconv.c:3416:9: Skipping av_log(): empty list of specs
3414. 
3415.     if (!st) {
3416.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3417.         exit_program(1);
3418.     }

avconv.c:3417:9: Skipping exit_program(): empty list of specs
3415.     if (!st) {
3416.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3417.         exit_program(1);
              ^
3418.     }
3419. 

avconv.c:3420:9: Taking true branch
3418.     }
3419. 
3420.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3421.         st->id = o->streamid_map[oc->nb_streams - 1];
3422. 

avconv.c:3421:9: 
3419. 
3420.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3421.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3422. 
3423.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
