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

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

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

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:3110:5: 
3108.     OutputStream *ost;
3109.     AVStream *st = avformat_new_stream(oc, NULL);
3110.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3111.     int64_t max_frames = INT64_MAX;
3112.     char *bsf = NULL, *next, *codec_tag = NULL;

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

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

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

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

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

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

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

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

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

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

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