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

ffmpeg.c:3142:1: start of procedure new_audio_stream()
3140. }
3141. 
3142. static void new_audio_stream(AVFormatContext *oc)
      ^
3143. {
3144.     AVStream *st;

ffmpeg.c:3148:5: 
3146.     int codec_id;
3147. 
3148.     st = av_new_stream(oc, oc->nb_streams);
          ^
3149.     if (!st) {
3150.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2373:1: start of procedure av_new_stream()
  2371. }
  2372. 
  2373. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2374. {
  2375.     AVStream *st;

libavformat/utils.c:2378:9: Taking true branch
  2376.     int i;
  2377. 
  2378.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2379.         return NULL;
  2380. 

libavformat/utils.c:2379:9: 
  2377. 
  2378.     if (s->nb_streams >= MAX_STREAMS)
  2379.         return NULL;
                ^
  2380. 
  2381.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2412:1: return from a call to av_new_stream
  2410.     s->streams[s->nb_streams++] = st;
  2411.     return st;
  2412. }
        ^
  2413. 
  2414. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3149:10: Taking true branch
3147. 
3148.     st = av_new_stream(oc, oc->nb_streams);
3149.     if (!st) {
               ^
3150.         fprintf(stderr, "Could not alloc stream\n");
3151.         av_exit(1);

ffmpeg.c:3150:9: 
3148.     st = av_new_stream(oc, oc->nb_streams);
3149.     if (!st) {
3150.         fprintf(stderr, "Could not alloc stream\n");
              ^
3151.         av_exit(1);
3152.     }

ffmpeg.c:3151:9: Skipping av_exit(): empty list of specs
3149.     if (!st) {
3150.         fprintf(stderr, "Could not alloc stream\n");
3151.         av_exit(1);
              ^
3152.     }
3153.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);

ffmpeg.c:3153:5: 
3151.         av_exit(1);
3152.     }
3153.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_AUDIO);
          ^
3154. 
3155.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= audio_bitstream_filters;
