ffmpeg.c:3115: error: Null Dereference
  pointer `st` last assigned on line 3110 could be null and is dereferenced at line 3115, column 35.

ffmpeg.c:3104:1: start of procedure new_audio_stream()
3102. }
3103. 
3104. static void new_audio_stream(AVFormatContext *oc)
      ^
3105. {
3106.     AVStream *st;

ffmpeg.c:3110:5: 
3108.     int codec_id;
3109. 
3110.     st = av_new_stream(oc, oc->nb_streams);
          ^
3111.     if (!st) {
3112.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2271:1: start of procedure av_new_stream()
  2269. }
  2270. 
  2271. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2272. {
  2273.     AVStream *st;

libavformat/utils.c:2276:9: Taking true branch
  2274.     int i;
  2275. 
  2276.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2277.         return NULL;
  2278. 

libavformat/utils.c:2277:9: 
  2275. 
  2276.     if (s->nb_streams >= MAX_STREAMS)
  2277.         return NULL;
                ^
  2278. 
  2279.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2309:1: return from a call to av_new_stream
  2307.     s->streams[s->nb_streams++] = st;
  2308.     return st;
  2309. }
        ^
  2310. 
  2311. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3111:10: Taking true branch
3109. 
3110.     st = av_new_stream(oc, oc->nb_streams);
3111.     if (!st) {
               ^
3112.         fprintf(stderr, "Could not alloc stream\n");
3113.         av_exit(1);

ffmpeg.c:3112:9: 
3110.     st = av_new_stream(oc, oc->nb_streams);
3111.     if (!st) {
3112.         fprintf(stderr, "Could not alloc stream\n");
              ^
3113.         av_exit(1);
3114.     }

ffmpeg.c:3113:9: Skipping av_exit(): empty list of specs
3111.     if (!st) {
3112.         fprintf(stderr, "Could not alloc stream\n");
3113.         av_exit(1);
              ^
3114.     }
3115.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3115:5: 
3113.         av_exit(1);
3114.     }
3115.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3116. 
3117.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
