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

ffmpeg.c:2971:1: start of procedure new_video_stream()
2969. }
2970. 
2971. static void new_video_stream(AVFormatContext *oc)
      ^
2972. {
2973.     AVStream *st;

ffmpeg.c:2977:5: 
2975.     int codec_id;
2976. 
2977.     st = av_new_stream(oc, oc->nb_streams);
          ^
2978.     if (!st) {
2979.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2344:1: start of procedure av_new_stream()
  2342. }
  2343. 
  2344. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2345. {
  2346.     AVStream *st;

libavformat/utils.c:2349:9: Taking true branch
  2347.     int i;
  2348. 
  2349.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2350.         return NULL;
  2351. 

libavformat/utils.c:2350:9: 
  2348. 
  2349.     if (s->nb_streams >= MAX_STREAMS)
  2350.         return NULL;
                ^
  2351. 
  2352.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2383:1: return from a call to av_new_stream
  2381.     s->streams[s->nb_streams++] = st;
  2382.     return st;
  2383. }
        ^
  2384. 
  2385. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:2978:10: Taking true branch
2976. 
2977.     st = av_new_stream(oc, oc->nb_streams);
2978.     if (!st) {
               ^
2979.         fprintf(stderr, "Could not alloc stream\n");
2980.         av_exit(1);

ffmpeg.c:2979:9: 
2977.     st = av_new_stream(oc, oc->nb_streams);
2978.     if (!st) {
2979.         fprintf(stderr, "Could not alloc stream\n");
              ^
2980.         av_exit(1);
2981.     }

ffmpeg.c:2980:9: Skipping av_exit(): empty list of specs
2978.     if (!st) {
2979.         fprintf(stderr, "Could not alloc stream\n");
2980.         av_exit(1);
              ^
2981.     }
2982.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);

ffmpeg.c:2982:5: 
2980.         av_exit(1);
2981.     }
2982.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
2983.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
2984.     video_bitstream_filters= NULL;
