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

ffmpeg.c:3139:1: start of procedure new_audio_stream()
3137. }
3138. 
3139. static void new_audio_stream(AVFormatContext *oc)
      ^
3140. {
3141.     AVStream *st;

ffmpeg.c:3145:5: 
3143.     int codec_id;
3144. 
3145.     st = av_new_stream(oc, oc->nb_streams);
          ^
3146.     if (!st) {
3147.         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:3146:10: Taking true branch
3144. 
3145.     st = av_new_stream(oc, oc->nb_streams);
3146.     if (!st) {
               ^
3147.         fprintf(stderr, "Could not alloc stream\n");
3148.         av_exit(1);

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

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

ffmpeg.c:3150:5: 
3148.         av_exit(1);
3149.     }
3150.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3151. 
3152.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
