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

ffmpeg.c:3175:1: start of procedure new_audio_stream()
3173. }
3174. 
3175. static void new_audio_stream(AVFormatContext *oc)
      ^
3176. {
3177.     AVStream *st;

ffmpeg.c:3181:5: 
3179.     enum CodecID codec_id;
3180. 
3181.     st = av_new_stream(oc, oc->nb_streams);
          ^
3182.     if (!st) {
3183.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2355:1: start of procedure av_new_stream()
  2353. }
  2354. 
  2355. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2356. {
  2357.     AVStream *st;

libavformat/utils.c:2360:9: Taking true branch
  2358.     int i;
  2359. 
  2360.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2361.         return NULL;
  2362. 

libavformat/utils.c:2361:9: 
  2359. 
  2360.     if (s->nb_streams >= MAX_STREAMS)
  2361.         return NULL;
                ^
  2362. 
  2363.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2395:1: return from a call to av_new_stream
  2393.     s->streams[s->nb_streams++] = st;
  2394.     return st;
  2395. }
        ^
  2396. 
  2397. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3182:10: Taking true branch
3180. 
3181.     st = av_new_stream(oc, oc->nb_streams);
3182.     if (!st) {
               ^
3183.         fprintf(stderr, "Could not alloc stream\n");
3184.         av_exit(1);

ffmpeg.c:3183:9: 
3181.     st = av_new_stream(oc, oc->nb_streams);
3182.     if (!st) {
3183.         fprintf(stderr, "Could not alloc stream\n");
              ^
3184.         av_exit(1);
3185.     }

ffmpeg.c:3184:9: Skipping av_exit(): empty list of specs
3182.     if (!st) {
3183.         fprintf(stderr, "Could not alloc stream\n");
3184.         av_exit(1);
              ^
3185.     }
3186.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3186:5: 
3184.         av_exit(1);
3185.     }
3186.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3187. 
3188.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
