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

avconv.c:3221:1: start of procedure new_output_stream()
3219. }
3220. 
3221. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3222. {
3223.     OutputStream *ost;

avconv.c:3224:5: 
3222. {
3223.     OutputStream *ost;
3224.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3225.     int idx      = oc->nb_streams - 1, ret = 0;
3226.     char *bsf = NULL, *next, *codec_tag = NULL;

libavformat/utils.c:2724:1: start of procedure avformat_new_stream()
  2722. #endif
  2723. 
  2724. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2725. {
  2726.     AVStream *st;

libavformat/utils.c:2730:9: Taking true branch
  2728.     AVStream **streams;
  2729. 
  2730.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2731.         return NULL;
  2732.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2731:9: 
  2729. 
  2730.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2731.         return NULL;
                ^
  2732.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2733.     if (!streams)

libavformat/utils.c:2772:1: return from a call to avformat_new_stream
  2770.     s->streams[s->nb_streams++] = st;
  2771.     return st;
  2772. }
        ^
  2773. 
  2774. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3225:5: 
3223.     OutputStream *ost;
3224.     AVStream *st = avformat_new_stream(oc, NULL);
3225.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3226.     char *bsf = NULL, *next, *codec_tag = NULL;
3227.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3226:5: 
3224.     AVStream *st = avformat_new_stream(oc, NULL);
3225.     int idx      = oc->nb_streams - 1, ret = 0;
3226.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3227.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3228.     double qscale = -1;

avconv.c:3227:5: 
3225.     int idx      = oc->nb_streams - 1, ret = 0;
3226.     char *bsf = NULL, *next, *codec_tag = NULL;
3227.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3228.     double qscale = -1;
3229.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3228:5: 
3226.     char *bsf = NULL, *next, *codec_tag = NULL;
3227.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3228.     double qscale = -1;
          ^
3229.     char *buf = NULL, *arg = NULL, *preset = NULL;
3230.     AVIOContext *s = NULL;

avconv.c:3229:5: 
3227.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3228.     double qscale = -1;
3229.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3230.     AVIOContext *s = NULL;
3231. 

avconv.c:3230:5: 
3228.     double qscale = -1;
3229.     char *buf = NULL, *arg = NULL, *preset = NULL;
3230.     AVIOContext *s = NULL;
          ^
3231. 
3232.     if (!st) {

avconv.c:3232:10: Taking true branch
3230.     AVIOContext *s = NULL;
3231. 
3232.     if (!st) {
               ^
3233.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3234.         exit_program(1);

avconv.c:3233:9: Skipping av_log(): empty list of specs
3231. 
3232.     if (!st) {
3233.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3234.         exit_program(1);
3235.     }

avconv.c:3234:9: Skipping exit_program(): empty list of specs
3232.     if (!st) {
3233.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3234.         exit_program(1);
              ^
3235.     }
3236. 

avconv.c:3237:9: Taking true branch
3235.     }
3236. 
3237.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3238.         st->id = o->streamid_map[oc->nb_streams - 1];
3239. 

avconv.c:3238:9: 
3236. 
3237.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3238.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3239. 
3240.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
