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

ffmpeg.c:3163:1: start of procedure new_audio_stream()
3161. }
3162. 
3163. static void new_audio_stream(AVFormatContext *oc)
      ^
3164. {
3165.     AVStream *st;

ffmpeg.c:3169:5: 
3167.     int codec_id;
3168. 
3169.     st = av_new_stream(oc, oc->nb_streams);
          ^
3170.     if (!st) {
3171.         fprintf(stderr, "Could not alloc stream\n");

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

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

libavformat/utils.c:2324:9: 
  2322. 
  2323.     if (s->nb_streams >= MAX_STREAMS)
  2324.         return NULL;
                ^
  2325. 
  2326.     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:3170:10: Taking true branch
3168. 
3169.     st = av_new_stream(oc, oc->nb_streams);
3170.     if (!st) {
               ^
3171.         fprintf(stderr, "Could not alloc stream\n");
3172.         av_exit(1);

ffmpeg.c:3171:9: 
3169.     st = av_new_stream(oc, oc->nb_streams);
3170.     if (!st) {
3171.         fprintf(stderr, "Could not alloc stream\n");
              ^
3172.         av_exit(1);
3173.     }

ffmpeg.c:3172:9: Skipping av_exit(): empty list of specs
3170.     if (!st) {
3171.         fprintf(stderr, "Could not alloc stream\n");
3172.         av_exit(1);
              ^
3173.     }
3174.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3174:5: 
3172.         av_exit(1);
3173.     }
3174.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3175. 
3176.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
