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

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

avconv.c:3397:5: 
3395. {
3396.     OutputStream *ost;
3397.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3398.     int idx      = oc->nb_streams - 1, ret = 0;
3399.     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:3398:5: 
3396.     OutputStream *ost;
3397.     AVStream *st = avformat_new_stream(oc, NULL);
3398.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3399.     char *bsf = NULL, *next, *codec_tag = NULL;
3400.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

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

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

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

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

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

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

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

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

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

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