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

ffmpeg.c:3288:1: start of procedure new_audio_stream()
3286. }
3287. 
3288. static void new_audio_stream(AVFormatContext *oc)
      ^
3289. {
3290.     AVStream *st;

ffmpeg.c:3294:5: 
3292.     enum CodecID codec_id;
3293. 
3294.     st = av_new_stream(oc, oc->nb_streams);
          ^
3295.     if (!st) {
3296.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2459:1: start of procedure av_new_stream()
  2457. }
  2458. 
  2459. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2460. {
  2461.     AVStream *st;

libavformat/utils.c:2464:9: Taking true branch
  2462.     int i;
  2463. 
  2464.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2465.         return NULL;
  2466. 

libavformat/utils.c:2465:9: 
  2463. 
  2464.     if (s->nb_streams >= MAX_STREAMS)
  2465.         return NULL;
                ^
  2466. 
  2467.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2499:1: return from a call to av_new_stream
  2497.     s->streams[s->nb_streams++] = st;
  2498.     return st;
  2499. }
        ^
  2500. 
  2501. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3295:10: Taking true branch
3293. 
3294.     st = av_new_stream(oc, oc->nb_streams);
3295.     if (!st) {
               ^
3296.         fprintf(stderr, "Could not alloc stream\n");
3297.         av_exit(1);

ffmpeg.c:3296:9: 
3294.     st = av_new_stream(oc, oc->nb_streams);
3295.     if (!st) {
3296.         fprintf(stderr, "Could not alloc stream\n");
              ^
3297.         av_exit(1);
3298.     }

ffmpeg.c:3297:9: Skipping av_exit(): empty list of specs
3295.     if (!st) {
3296.         fprintf(stderr, "Could not alloc stream\n");
3297.         av_exit(1);
              ^
3298.     }
3299.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);

ffmpeg.c:3299:5: 
3297.         av_exit(1);
3298.     }
3299.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);
          ^
3300. 
3301.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
