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

ffmpeg.c:3078:1: start of procedure new_audio_stream()
3076. }
3077. 
3078. static void new_audio_stream(AVFormatContext *oc)
      ^
3079. {
3080.     AVStream *st;

ffmpeg.c:3084:5: 
3082.     int codec_id;
3083. 
3084.     st = av_new_stream(oc, oc->nb_streams);
          ^
3085.     if (!st) {
3086.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2309:1: start of procedure av_new_stream()
  2307. }
  2308. 
  2309. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2310. {
  2311.     AVStream *st;

libavformat/utils.c:2314:9: Taking true branch
  2312.     int i;
  2313. 
  2314.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2315.         return NULL;
  2316. 

libavformat/utils.c:2315:9: 
  2313. 
  2314.     if (s->nb_streams >= MAX_STREAMS)
  2315.         return NULL;
                ^
  2316. 
  2317.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2347:1: return from a call to av_new_stream
  2345.     s->streams[s->nb_streams++] = st;
  2346.     return st;
  2347. }
        ^
  2348. 
  2349. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3085:10: Taking true branch
3083. 
3084.     st = av_new_stream(oc, oc->nb_streams);
3085.     if (!st) {
               ^
3086.         fprintf(stderr, "Could not alloc stream\n");
3087.         av_exit(1);

ffmpeg.c:3086:9: 
3084.     st = av_new_stream(oc, oc->nb_streams);
3085.     if (!st) {
3086.         fprintf(stderr, "Could not alloc stream\n");
              ^
3087.         av_exit(1);
3088.     }

ffmpeg.c:3087:9: Skipping av_exit(): empty list of specs
3085.     if (!st) {
3086.         fprintf(stderr, "Could not alloc stream\n");
3087.         av_exit(1);
              ^
3088.     }
3089.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3089:5: 
3087.         av_exit(1);
3088.     }
3089.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3090. 
3091.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
