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

avconv.c:3395:1: start of procedure new_output_stream()
3393. }
3394. 
3395. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3396. {
3397.     OutputStream *ost;

avconv.c:3398:5: 
3396. {
3397.     OutputStream *ost;
3398.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3399.     int idx      = oc->nb_streams - 1, ret = 0;
3400.     char *bsf = NULL, *next, *codec_tag = NULL;

libavformat/utils.c:2735:1: start of procedure avformat_new_stream()
  2733. #endif
  2734. 
  2735. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2736. {
  2737.     AVStream *st;

libavformat/utils.c:2741:9: Taking true branch
  2739.     AVStream **streams;
  2740. 
  2741.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2742.         return NULL;
  2743.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2742:9: 
  2740. 
  2741.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2742.         return NULL;
                ^
  2743.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2744.     if (!streams)

libavformat/utils.c:2783:1: return from a call to avformat_new_stream
  2781.     s->streams[s->nb_streams++] = st;
  2782.     return st;
  2783. }
        ^
  2784. 
  2785. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3399:5: 
3397.     OutputStream *ost;
3398.     AVStream *st = avformat_new_stream(oc, NULL);
3399.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3400.     char *bsf = NULL, *next, *codec_tag = NULL;
3401.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3400:5: 
3398.     AVStream *st = avformat_new_stream(oc, NULL);
3399.     int idx      = oc->nb_streams - 1, ret = 0;
3400.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3401.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3402.     double qscale = -1;

avconv.c:3401:5: 
3399.     int idx      = oc->nb_streams - 1, ret = 0;
3400.     char *bsf = NULL, *next, *codec_tag = NULL;
3401.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3402.     double qscale = -1;
3403.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3402:5: 
3400.     char *bsf = NULL, *next, *codec_tag = NULL;
3401.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3402.     double qscale = -1;
          ^
3403.     char *buf = NULL, *arg = NULL, *preset = NULL;
3404.     AVIOContext *s = NULL;

avconv.c:3403:5: 
3401.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3402.     double qscale = -1;
3403.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3404.     AVIOContext *s = NULL;
3405. 

avconv.c:3404:5: 
3402.     double qscale = -1;
3403.     char *buf = NULL, *arg = NULL, *preset = NULL;
3404.     AVIOContext *s = NULL;
          ^
3405. 
3406.     if (!st) {

avconv.c:3406:10: Taking true branch
3404.     AVIOContext *s = NULL;
3405. 
3406.     if (!st) {
               ^
3407.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3408.         exit_program(1);

avconv.c:3407:9: Skipping av_log(): empty list of specs
3405. 
3406.     if (!st) {
3407.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3408.         exit_program(1);
3409.     }

avconv.c:3408:9: Skipping exit_program(): empty list of specs
3406.     if (!st) {
3407.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3408.         exit_program(1);
              ^
3409.     }
3410. 

avconv.c:3411:9: Taking true branch
3409.     }
3410. 
3411.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3412.         st->id = o->streamid_map[oc->nb_streams - 1];
3413. 

avconv.c:3412:9: 
3410. 
3411.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3412.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3413. 
3414.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
