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

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

avconv.c:3023:5: 
3021. {
3022.     OutputStream *ost;
3023.     AVStream *st = avformat_new_stream(oc, NULL);
          ^
3024.     int idx      = oc->nb_streams - 1, ret = 0;
3025.     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:3024:5: 
3022.     OutputStream *ost;
3023.     AVStream *st = avformat_new_stream(oc, NULL);
3024.     int idx      = oc->nb_streams - 1, ret = 0;
          ^
3025.     int64_t max_frames = INT64_MAX;
3026.     char *bsf = NULL, *next, *codec_tag = NULL;

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

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

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

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

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

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

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

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

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

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

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