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

ffmpeg.c:2937:1: start of procedure new_video_stream()
2935. }
2936. 
2937. static void new_video_stream(AVFormatContext *oc)
      ^
2938. {
2939.     AVStream *st;

ffmpeg.c:2943:5: 
2941.     int codec_id;
2942. 
2943.     st = av_new_stream(oc, oc->nb_streams);
          ^
2944.     if (!st) {
2945.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2318:1: start of procedure av_new_stream()
  2316. }
  2317. 
  2318. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2319. {
  2320.     AVStream *st;

libavformat/utils.c:2323:9: Taking true branch
  2321.     int i;
  2322. 
  2323.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2324.         return NULL;
  2325. 

libavformat/utils.c:2324:9: 
  2322. 
  2323.     if (s->nb_streams >= MAX_STREAMS)
  2324.         return NULL;
                ^
  2325. 
  2326.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2356:1: return from a call to av_new_stream
  2354.     s->streams[s->nb_streams++] = st;
  2355.     return st;
  2356. }
        ^
  2357. 
  2358. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:2944:10: Taking true branch
2942. 
2943.     st = av_new_stream(oc, oc->nb_streams);
2944.     if (!st) {
               ^
2945.         fprintf(stderr, "Could not alloc stream\n");
2946.         av_exit(1);

ffmpeg.c:2945:9: 
2943.     st = av_new_stream(oc, oc->nb_streams);
2944.     if (!st) {
2945.         fprintf(stderr, "Could not alloc stream\n");
              ^
2946.         av_exit(1);
2947.     }

ffmpeg.c:2946:9: Skipping av_exit(): empty list of specs
2944.     if (!st) {
2945.         fprintf(stderr, "Could not alloc stream\n");
2946.         av_exit(1);
              ^
2947.     }
2948.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);

ffmpeg.c:2948:5: 
2946.         av_exit(1);
2947.     }
2948.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
2949.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
2950.     video_bitstream_filters= NULL;
