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

avconv.c:3105:1: start of procedure new_output_stream()
3103. }
3104. 
3105. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3106. {
3107.     OutputStream *ost;

avconv.c:3108:5: 
3106. {
3107.     OutputStream *ost;
3108.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3109.     int idx      = oc->nb_streams - 1, ret = 0;
3110.     char *bsf = NULL, *next, *codec_tag = NULL;

libavformat/utils.c:2704:1: start of procedure avformat_new_stream()
  2702. #endif
  2703. 
  2704. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2705. {
  2706.     AVStream *st;

libavformat/utils.c:2710:9: Taking true branch
  2708.     AVStream **streams;
  2709. 
  2710.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2711.         return NULL;
  2712.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2711:9: 
  2709. 
  2710.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2711.         return NULL;
                ^
  2712.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2713.     if (!streams)

libavformat/utils.c:2752:1: return from a call to avformat_new_stream
  2750.     s->streams[s->nb_streams++] = st;
  2751.     return st;
  2752. }
        ^
  2753. 
  2754. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3109:5: 
3107.     OutputStream *ost;
3108.     AVStream *st = avformat_new_stream(oc, NULL);
3109.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3110.     char *bsf = NULL, *next, *codec_tag = NULL;
3111.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3110:5: 
3108.     AVStream *st = avformat_new_stream(oc, NULL);
3109.     int idx      = oc->nb_streams - 1, ret = 0;
3110.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3111.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3112.     double qscale = -1;

avconv.c:3111:5: 
3109.     int idx      = oc->nb_streams - 1, ret = 0;
3110.     char *bsf = NULL, *next, *codec_tag = NULL;
3111.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3112.     double qscale = -1;
3113.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3112:5: 
3110.     char *bsf = NULL, *next, *codec_tag = NULL;
3111.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3112.     double qscale = -1;
          ^
3113.     char *buf = NULL, *arg = NULL, *preset = NULL;
3114.     AVIOContext *s = NULL;

avconv.c:3113:5: 
3111.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3112.     double qscale = -1;
3113.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3114.     AVIOContext *s = NULL;
3115. 

avconv.c:3114:5: 
3112.     double qscale = -1;
3113.     char *buf = NULL, *arg = NULL, *preset = NULL;
3114.     AVIOContext *s = NULL;
          ^
3115. 
3116.     if (!st) {

avconv.c:3116:10: Taking true branch
3114.     AVIOContext *s = NULL;
3115. 
3116.     if (!st) {
               ^
3117.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3118.         exit_program(1);

avconv.c:3117:9: Skipping av_log(): empty list of specs
3115. 
3116.     if (!st) {
3117.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3118.         exit_program(1);
3119.     }

avconv.c:3118:9: Skipping exit_program(): empty list of specs
3116.     if (!st) {
3117.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3118.         exit_program(1);
              ^
3119.     }
3120. 

avconv.c:3121:9: Taking true branch
3119.     }
3120. 
3121.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3122.         st->id = o->streamid_map[oc->nb_streams - 1];
3123. 

avconv.c:3122:9: 
3120. 
3121.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3122.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3123. 
3124.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
