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

ffmpeg.c:3489:1: start of procedure new_audio_stream()
3487. }
3488. 
3489. static void new_audio_stream(AVFormatContext *oc)
      ^
3490. {
3491.     AVStream *st;

ffmpeg.c:3495:5: 
3493.     enum CodecID codec_id;
3494. 
3495.     st = av_new_stream(oc, streamid_map[oc->nb_streams]);
          ^
3496.     if (!st) {
3497.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2500:1: start of procedure av_new_stream()
  2498. }
  2499. 
  2500. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2501. {
  2502.     AVStream *st;

libavformat/utils.c:2505:9: Taking true branch
  2503.     int i;
  2504. 
  2505.     if (s->nb_streams >= MAX_STREAMS){
                ^
  2506.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
  2507.         return NULL;

libavformat/utils.c:2506:9: Skipping av_log(): empty list of specs
  2504. 
  2505.     if (s->nb_streams >= MAX_STREAMS){
  2506.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
                ^
  2507.         return NULL;
  2508.     }

libavformat/utils.c:2507:9: 
  2505.     if (s->nb_streams >= MAX_STREAMS){
  2506.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
  2507.         return NULL;
                ^
  2508.     }
  2509. 

libavformat/utils.c:2542:1: return from a call to av_new_stream
  2540.     s->streams[s->nb_streams++] = st;
  2541.     return st;
  2542. }
        ^
  2543. 
  2544. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3496:10: Taking true branch
3494. 
3495.     st = av_new_stream(oc, streamid_map[oc->nb_streams]);
3496.     if (!st) {
               ^
3497.         fprintf(stderr, "Could not alloc stream\n");
3498.         ffmpeg_exit(1);

ffmpeg.c:3497:9: 
3495.     st = av_new_stream(oc, streamid_map[oc->nb_streams]);
3496.     if (!st) {
3497.         fprintf(stderr, "Could not alloc stream\n");
              ^
3498.         ffmpeg_exit(1);
3499.     }

ffmpeg.c:3498:9: Skipping ffmpeg_exit(): empty list of specs
3496.     if (!st) {
3497.         fprintf(stderr, "Could not alloc stream\n");
3498.         ffmpeg_exit(1);
              ^
3499.     }
3500.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);

ffmpeg.c:3500:5: 
3498.         ffmpeg_exit(1);
3499.     }
3500.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_AUDIO);
          ^
3501. 
3502.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
