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

ffmpeg.c:3109:1: start of procedure new_audio_stream()
3107. }
3108. 
3109. static void new_audio_stream(AVFormatContext *oc)
      ^
3110. {
3111.     AVStream *st;

ffmpeg.c:3115:5: 
3113.     int codec_id;
3114. 
3115.     st = av_new_stream(oc, oc->nb_streams);
          ^
3116.     if (!st) {
3117.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2292:1: start of procedure av_new_stream()
  2290. }
  2291. 
  2292. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2293. {
  2294.     AVStream *st;

libavformat/utils.c:2297:9: Taking true branch
  2295.     int i;
  2296. 
  2297.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2298.         return NULL;
  2299. 

libavformat/utils.c:2298:9: 
  2296. 
  2297.     if (s->nb_streams >= MAX_STREAMS)
  2298.         return NULL;
                ^
  2299. 
  2300.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2330:1: return from a call to av_new_stream
  2328.     s->streams[s->nb_streams++] = st;
  2329.     return st;
  2330. }
        ^
  2331. 
  2332. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3116:10: Taking true branch
3114. 
3115.     st = av_new_stream(oc, oc->nb_streams);
3116.     if (!st) {
               ^
3117.         fprintf(stderr, "Could not alloc stream\n");
3118.         av_exit(1);

ffmpeg.c:3117:9: 
3115.     st = av_new_stream(oc, oc->nb_streams);
3116.     if (!st) {
3117.         fprintf(stderr, "Could not alloc stream\n");
              ^
3118.         av_exit(1);
3119.     }

ffmpeg.c:3118:9: Skipping av_exit(): empty list of specs
3116.     if (!st) {
3117.         fprintf(stderr, "Could not alloc stream\n");
3118.         av_exit(1);
              ^
3119.     }
3120.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3120:5: 
3118.         av_exit(1);
3119.     }
3120.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3121. 
3122.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
