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

ffmpeg.c:3206:1: start of procedure new_audio_stream()
3204. }
3205. 
3206. static void new_audio_stream(AVFormatContext *oc)
      ^
3207. {
3208.     AVStream *st;

ffmpeg.c:3212:5: 
3210.     enum CodecID codec_id;
3211. 
3212.     st = av_new_stream(oc, oc->nb_streams);
          ^
3213.     if (!st) {
3214.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2404:1: start of procedure av_new_stream()
  2402. }
  2403. 
  2404. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2405. {
  2406.     AVStream *st;

libavformat/utils.c:2409:9: Taking true branch
  2407.     int i;
  2408. 
  2409.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2410.         return NULL;
  2411. 

libavformat/utils.c:2410:9: 
  2408. 
  2409.     if (s->nb_streams >= MAX_STREAMS)
  2410.         return NULL;
                ^
  2411. 
  2412.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2444:1: return from a call to av_new_stream
  2442.     s->streams[s->nb_streams++] = st;
  2443.     return st;
  2444. }
        ^
  2445. 
  2446. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3213:10: Taking true branch
3211. 
3212.     st = av_new_stream(oc, oc->nb_streams);
3213.     if (!st) {
               ^
3214.         fprintf(stderr, "Could not alloc stream\n");
3215.         av_exit(1);

ffmpeg.c:3214:9: 
3212.     st = av_new_stream(oc, oc->nb_streams);
3213.     if (!st) {
3214.         fprintf(stderr, "Could not alloc stream\n");
              ^
3215.         av_exit(1);
3216.     }

ffmpeg.c:3215:9: Skipping av_exit(): empty list of specs
3213.     if (!st) {
3214.         fprintf(stderr, "Could not alloc stream\n");
3215.         av_exit(1);
              ^
3216.     }
3217.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3217:5: 
3215.         av_exit(1);
3216.     }
3217.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3218. 
3219.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
