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

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

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

libavformat/utils.c:2336:1: start of procedure av_new_stream()
  2334. }
  2335. 
  2336. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2337. {
  2338.     AVStream *st;

libavformat/utils.c:2341:9: Taking true branch
  2339.     int i;
  2340. 
  2341.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2342.         return NULL;
  2343. 

libavformat/utils.c:2342:9: 
  2340. 
  2341.     if (s->nb_streams >= MAX_STREAMS)
  2342.         return NULL;
                ^
  2343. 
  2344.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2375:1: return from a call to av_new_stream
  2373.     s->streams[s->nb_streams++] = st;
  2374.     return st;
  2375. }
        ^
  2376. 
  2377. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

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