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

avconv.c:3017:1: start of procedure new_output_stream()
3015. }
3016. 
3017. static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)
      ^
3018. {
3019.     OutputStream *ost;

avconv.c:3020:5: 
3018. {
3019.     OutputStream *ost;
3020.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3021.     int idx      = oc->nb_streams - 1, ret = 0;
3022.     int64_t max_frames = INT64_MAX;

libavformat/utils.c:2663:1: start of procedure avformat_new_stream()
  2661. #endif
  2662. 
  2663. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2664. {
  2665.     AVStream *st;

libavformat/utils.c:2669:9: Taking true branch
  2667.     AVStream **streams;
  2668. 
  2669.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2670.         return NULL;
  2671.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2670:9: 
  2668. 
  2669.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2670.         return NULL;
                ^
  2671.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2672.     if (!streams)

libavformat/utils.c:2711:1: return from a call to avformat_new_stream
  2709.     s->streams[s->nb_streams++] = st;
  2710.     return st;
  2711. }
        ^
  2712. 
  2713. AVProgram *av_new_program(AVFormatContext *ac, int id)

avconv.c:3021:5: 
3019.     OutputStream *ost;
3020.     AVStream *st = avformat_new_stream(oc, NULL);
3021.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3022.     int64_t max_frames = INT64_MAX;
3023.     char *bsf = NULL, *next, *codec_tag = NULL;

avconv.c:3022:5: 
3020.     AVStream *st = avformat_new_stream(oc, NULL);
3021.     int idx      = oc->nb_streams - 1, ret = 0;
3022.     int64_t max_frames = INT64_MAX;
          ^
3023.     char *bsf = NULL, *next, *codec_tag = NULL;
3024.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;

avconv.c:3023:5: 
3021.     int idx      = oc->nb_streams - 1, ret = 0;
3022.     int64_t max_frames = INT64_MAX;
3023.     char *bsf = NULL, *next, *codec_tag = NULL;
          ^
3024.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3025.     double qscale = -1;

avconv.c:3024:5: 
3022.     int64_t max_frames = INT64_MAX;
3023.     char *bsf = NULL, *next, *codec_tag = NULL;
3024.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
          ^
3025.     double qscale = -1;
3026.     char *buf = NULL, *arg = NULL, *preset = NULL;

avconv.c:3025:5: 
3023.     char *bsf = NULL, *next, *codec_tag = NULL;
3024.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3025.     double qscale = -1;
          ^
3026.     char *buf = NULL, *arg = NULL, *preset = NULL;
3027.     AVIOContext *s = NULL;

avconv.c:3026:5: 
3024.     AVBitStreamFilterContext *bsfc, *bsfc_prev = NULL;
3025.     double qscale = -1;
3026.     char *buf = NULL, *arg = NULL, *preset = NULL;
          ^
3027.     AVIOContext *s = NULL;
3028. 

avconv.c:3027:5: 
3025.     double qscale = -1;
3026.     char *buf = NULL, *arg = NULL, *preset = NULL;
3027.     AVIOContext *s = NULL;
          ^
3028. 
3029.     if (!st) {

avconv.c:3029:10: Taking true branch
3027.     AVIOContext *s = NULL;
3028. 
3029.     if (!st) {
               ^
3030.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3031.         exit_program(1);

avconv.c:3030:9: Skipping av_log(): empty list of specs
3028. 
3029.     if (!st) {
3030.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
              ^
3031.         exit_program(1);
3032.     }

avconv.c:3031:9: Skipping exit_program(): empty list of specs
3029.     if (!st) {
3030.         av_log(NULL, AV_LOG_FATAL, "Could not alloc stream.\n");
3031.         exit_program(1);
              ^
3032.     }
3033. 

avconv.c:3034:9: Taking true branch
3032.     }
3033. 
3034.     if (oc->nb_streams - 1 < o->nb_streamid_map)
              ^
3035.         st->id = o->streamid_map[oc->nb_streams - 1];
3036. 

avconv.c:3035:9: 
3033. 
3034.     if (oc->nb_streams - 1 < o->nb_streamid_map)
3035.         st->id = o->streamid_map[oc->nb_streams - 1];
              ^
3036. 
3037.     output_streams = grow_array(output_streams, sizeof(*output_streams), &nb_output_streams,
