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

ffmpeg.c:3480:1: start of procedure new_audio_stream()
3478. }
3479. 
3480. static void new_audio_stream(AVFormatContext *oc)
      ^
3481. {
3482.     AVStream *st;

ffmpeg.c:3486:5: 
3484.     enum CodecID codec_id;
3485. 
3486.     st = av_new_stream(oc, oc->nb_streams);
          ^
3487.     if (!st) {
3488.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2465:1: start of procedure av_new_stream()
  2463. }
  2464. 
  2465. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2466. {
  2467.     AVStream *st;

libavformat/utils.c:2470:9: Taking true branch
  2468.     int i;
  2469. 
  2470.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2471.         return NULL;
  2472. 

libavformat/utils.c:2471:9: 
  2469. 
  2470.     if (s->nb_streams >= MAX_STREAMS)
  2471.         return NULL;
                ^
  2472. 
  2473.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2505:1: return from a call to av_new_stream
  2503.     s->streams[s->nb_streams++] = st;
  2504.     return st;
  2505. }
        ^
  2506. 
  2507. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3487:10: Taking true branch
3485. 
3486.     st = av_new_stream(oc, oc->nb_streams);
3487.     if (!st) {
               ^
3488.         fprintf(stderr, "Could not alloc stream\n");
3489.         av_exit(1);

ffmpeg.c:3488:9: 
3486.     st = av_new_stream(oc, oc->nb_streams);
3487.     if (!st) {
3488.         fprintf(stderr, "Could not alloc stream\n");
              ^
3489.         av_exit(1);
3490.     }

ffmpeg.c:3489:9: Skipping av_exit(): empty list of specs
3487.     if (!st) {
3488.         fprintf(stderr, "Could not alloc stream\n");
3489.         av_exit(1);
              ^
3490.     }
3491.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);

ffmpeg.c:3491:5: 
3489.         av_exit(1);
3490.     }
3491.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);
          ^
3492. 
3493.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
