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

avconv.c:3385:1: start of procedure new_output_stream()
3383. }
3384. 
3385. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3386. {
3387.     OutputStream *ost;

avconv.c:3388:5: 
3386. {
3387.     OutputStream *ost;
3388.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3389.     int idx      = oc->nb_streams - 1, ret = 0;
3390.     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:3389:5: 
3387.     OutputStream *ost;
3388.     AVStream *st = avformat_new_stream(oc, NULL);
3389.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3390.     char *bsf = NULL, *next, *codec_tag = NULL;
3391.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3390:5: 
3388.     AVStream *st = avformat_new_stream(oc, NULL);
3389.     int idx      = oc->nb_streams - 1, ret = 0;
3390.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3391.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3392.     double qscale = -1;

avconv.c:3391:5: 
3389.     int idx      = oc->nb_streams - 1, ret = 0;
3390.     char *bsf = NULL, *next, *codec_tag = NULL;
3391.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3392.     double qscale = -1;
3393.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3392:5: 
3390.     char *bsf = NULL, *next, *codec_tag = NULL;
3391.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3392.     double qscale = -1;
          ^
3393.     char *buf = NULL, *arg = NULL, *preset = NULL;
3394.     AVIOContext *s = NULL;

avconv.c:3393:5: 
3391.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3392.     double qscale = -1;
3393.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3394.     AVIOContext *s = NULL;
3395. 

avconv.c:3394:5: 
3392.     double qscale = -1;
3393.     char *buf = NULL, *arg = NULL, *preset = NULL;
3394.     AVIOContext *s = NULL;
          ^
3395. 
3396.     if (!st) {

avconv.c:3396:10: Taking true branch
3394.     AVIOContext *s = NULL;
3395. 
3396.     if (!st) {
               ^
3397.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3398.         exit_program(1);

avconv.c:3397:9: Skipping av_log(): empty list of specs
3395. 
3396.     if (!st) {
3397.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3398.         exit_program(1);
3399.     }

avconv.c:3398:9: Skipping exit_program(): empty list of specs
3396.     if (!st) {
3397.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3398.         exit_program(1);
              ^
3399.     }
3400. 

avconv.c:3401:9: Taking true branch
3399.     }
3400. 
3401.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3402.         st->id = o->streamid_map[oc->nb_streams - 1];
3403. 

avconv.c:3402:9: 
3400. 
3401.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3402.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3403. 
3404.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
