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

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

avconv.c:3110:5: 
3108. {
3109.     OutputStream *ost;
3110.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3111.     int idx      = oc->nb_streams - 1, ret = 0;
3112.     int64_t max_frames = INT64_MAX;

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

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

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

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

avconv.c:3111:5: 
3109.     OutputStream *ost;
3110.     AVStream *st = avformat_new_stream(oc, NULL);
3111.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3112.     int64_t max_frames = INT64_MAX;
3113.     char *bsf = NULL, *next, *codec_tag = NULL;

avconv.c:3112:5: 
3110.     AVStream *st = avformat_new_stream(oc, NULL);
3111.     int idx      = oc->nb_streams - 1, ret = 0;
3112.     int64_t max_frames = INT64_MAX;
          ^
3113.     char *bsf = NULL, *next, *codec_tag = NULL;
3114.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3113:5: 
3111.     int idx      = oc->nb_streams - 1, ret = 0;
3112.     int64_t max_frames = INT64_MAX;
3113.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3114.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3115.     double qscale = -1;

avconv.c:3114:5: 
3112.     int64_t max_frames = INT64_MAX;
3113.     char *bsf = NULL, *next, *codec_tag = NULL;
3114.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3115.     double qscale = -1;
3116.     char *buf = NULL, *arg = NULL, *preset = NULL;

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

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

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

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

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

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

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

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