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

avconv.c:3424:1: start of procedure new_output_stream()
3422. }
3423. 
3424. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3425. {
3426.     OutputStream *ost;

avconv.c:3427:5: 
3425. {
3426.     OutputStream *ost;
3427.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3428.     int idx      = oc->nb_streams - 1, ret = 0;
3429.     char *bsf = NULL, *next, *codec_tag = NULL;

libavformat/utils.c:2744:1: start of procedure avformat_new_stream()
  2742. #endif
  2743. 
  2744. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2745. {
  2746.     AVStream *st;

libavformat/utils.c:2750:9: Taking true branch
  2748.     AVStream **streams;
  2749. 
  2750.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2751.         return NULL;
  2752.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2751:9: 
  2749. 
  2750.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2751.         return NULL;
                ^
  2752.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2753.     if (!streams)

libavformat/utils.c:2792:1: return from a call to avformat_new_stream
  2790.     s->streams[s->nb_streams++] = st;
  2791.     return st;
  2792. }
        ^
  2793. 
  2794. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3428:5: 
3426.     OutputStream *ost;
3427.     AVStream *st = avformat_new_stream(oc, NULL);
3428.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3429.     char *bsf = NULL, *next, *codec_tag = NULL;
3430.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3429:5: 
3427.     AVStream *st = avformat_new_stream(oc, NULL);
3428.     int idx      = oc->nb_streams - 1, ret = 0;
3429.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3430.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3431.     double qscale = -1;

avconv.c:3430:5: 
3428.     int idx      = oc->nb_streams - 1, ret = 0;
3429.     char *bsf = NULL, *next, *codec_tag = NULL;
3430.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3431.     double qscale = -1;
3432.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3431:5: 
3429.     char *bsf = NULL, *next, *codec_tag = NULL;
3430.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3431.     double qscale = -1;
          ^
3432.     char *buf = NULL, *arg = NULL, *preset = NULL;
3433.     AVIOContext *s = NULL;

avconv.c:3432:5: 
3430.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3431.     double qscale = -1;
3432.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3433.     AVIOContext *s = NULL;
3434. 

avconv.c:3433:5: 
3431.     double qscale = -1;
3432.     char *buf = NULL, *arg = NULL, *preset = NULL;
3433.     AVIOContext *s = NULL;
          ^
3434. 
3435.     if (!st) {

avconv.c:3435:10: Taking true branch
3433.     AVIOContext *s = NULL;
3434. 
3435.     if (!st) {
               ^
3436.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3437.         exit_program(1);

avconv.c:3436:9: Skipping av_log(): empty list of specs
3434. 
3435.     if (!st) {
3436.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3437.         exit_program(1);
3438.     }

avconv.c:3437:9: Skipping exit_program(): empty list of specs
3435.     if (!st) {
3436.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3437.         exit_program(1);
              ^
3438.     }
3439. 

avconv.c:3440:9: Taking true branch
3438.     }
3439. 
3440.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3441.         st->id = o->streamid_map[oc->nb_streams - 1];
3442. 

avconv.c:3441:9: 
3439. 
3440.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3441.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3442. 
3443.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
