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

ffmpeg.c:3143:1: start of procedure new_audio_stream()
3141. }
3142. 
3143. static void new_audio_stream(AVFormatContext *oc)
      ^
3144. {
3145.     AVStream *st;

ffmpeg.c:3149:5: 
3147.     int codec_id;
3148. 
3149.     st = av_new_stream(oc, oc->nb_streams);
          ^
3150.     if (!st) {
3151.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2305:1: start of procedure av_new_stream()
  2303. }
  2304. 
  2305. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2306. {
  2307.     AVStream *st;

libavformat/utils.c:2310:9: Taking true branch
  2308.     int i;
  2309. 
  2310.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2311.         return NULL;
  2312. 

libavformat/utils.c:2311:9: 
  2309. 
  2310.     if (s->nb_streams >= MAX_STREAMS)
  2311.         return NULL;
                ^
  2312. 
  2313.     st = av_mallocz(sizeof(AVStream));

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

ffmpeg.c:3150:10: Taking true branch
3148. 
3149.     st = av_new_stream(oc, oc->nb_streams);
3150.     if (!st) {
               ^
3151.         fprintf(stderr, "Could not alloc stream\n");
3152.         av_exit(1);

ffmpeg.c:3151:9: 
3149.     st = av_new_stream(oc, oc->nb_streams);
3150.     if (!st) {
3151.         fprintf(stderr, "Could not alloc stream\n");
              ^
3152.         av_exit(1);
3153.     }

ffmpeg.c:3152:9: Skipping av_exit(): empty list of specs
3150.     if (!st) {
3151.         fprintf(stderr, "Could not alloc stream\n");
3152.         av_exit(1);
              ^
3153.     }
3154.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3154:5: 
3152.         av_exit(1);
3153.     }
3154.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3155. 
3156.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
