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

ffmpeg.c:2933:1: start of procedure new_video_stream()
2931. }
2932. 
2933. static void new_video_stream(AVFormatContext *oc)
      ^
2934. {
2935.     AVStream *st;

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

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

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

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

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

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

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

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

ffmpeg.c:2944:5: 
2942.         av_exit(1);
2943.     }
2944.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
2945.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
2946.     video_bitstream_filters= NULL;
