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

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

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

libavformat/utils.c:2309:1: start of procedure av_new_stream()
  2307. }
  2308. 
  2309. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2310. {
  2311.     AVStream *st;

libavformat/utils.c:2314:9: Taking true branch
  2312.     int i;
  2313. 
  2314.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2315.         return NULL;
  2316. 

libavformat/utils.c:2315:9: 
  2313. 
  2314.     if (s->nb_streams >= MAX_STREAMS)
  2315.         return NULL;
                ^
  2316. 
  2317.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2347:1: return from a call to av_new_stream
  2345.     s->streams[s->nb_streams++] = st;
  2346.     return st;
  2347. }
        ^
  2348. 
  2349. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

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