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

ffmpeg.c:3131:1: start of procedure new_audio_stream()
3129. }
3130. 
3131. static void new_audio_stream(AVFormatContext *oc)
      ^
3132. {
3133.     AVStream *st;

ffmpeg.c:3137:5: 
3135.     int codec_id;
3136. 
3137.     st = av_new_stream(oc, oc->nb_streams);
          ^
3138.     if (!st) {
3139.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2341:1: start of procedure av_new_stream()
  2339. }
  2340. 
  2341. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2342. {
  2343.     AVStream *st;

libavformat/utils.c:2346:9: Taking true branch
  2344.     int i;
  2345. 
  2346.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2347.         return NULL;
  2348. 

libavformat/utils.c:2347:9: 
  2345. 
  2346.     if (s->nb_streams >= MAX_STREAMS)
  2347.         return NULL;
                ^
  2348. 
  2349.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2381:1: return from a call to av_new_stream
  2379.     s->streams[s->nb_streams++] = st;
  2380.     return st;
  2381. }
        ^
  2382. 
  2383. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3138:10: Taking true branch
3136. 
3137.     st = av_new_stream(oc, oc->nb_streams);
3138.     if (!st) {
               ^
3139.         fprintf(stderr, "Could not alloc stream\n");
3140.         av_exit(1);

ffmpeg.c:3139:9: 
3137.     st = av_new_stream(oc, oc->nb_streams);
3138.     if (!st) {
3139.         fprintf(stderr, "Could not alloc stream\n");
              ^
3140.         av_exit(1);
3141.     }

ffmpeg.c:3140:9: Skipping av_exit(): empty list of specs
3138.     if (!st) {
3139.         fprintf(stderr, "Could not alloc stream\n");
3140.         av_exit(1);
              ^
3141.     }
3142.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3142:5: 
3140.         av_exit(1);
3141.     }
3142.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3143. 
3144.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
