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

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

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

libavformat/utils.c:2319:1: start of procedure av_new_stream()
  2317. }
  2318. 
  2319. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2320. {
  2321.     AVStream *st;

libavformat/utils.c:2324:9: Taking true branch
  2322.     int i;
  2323. 
  2324.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2325.         return NULL;
  2326. 

libavformat/utils.c:2325:9: 
  2323. 
  2324.     if (s->nb_streams >= MAX_STREAMS)
  2325.         return NULL;
                ^
  2326. 
  2327.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2357:1: return from a call to av_new_stream
  2355.     s->streams[s->nb_streams++] = st;
  2356.     return st;
  2357. }
        ^
  2358. 
  2359. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

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