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

ffmpeg.c:2897:1: start of procedure new_video_stream()
2895. }
2896. 
2897. static void new_video_stream(AVFormatContext *oc)
      ^
2898. {
2899.     AVStream *st;

ffmpeg.c:2903:5: 
2901.     int codec_id;
2902. 
2903.     st = av_new_stream(oc, oc->nb_streams);
          ^
2904.     if (!st) {
2905.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2162:1: start of procedure av_new_stream()
  2160. }
  2161. 
  2162. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2163. {
  2164.     AVStream *st;

libavformat/utils.c:2167:9: Taking true branch
  2165.     int i;
  2166. 
  2167.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2168.         return NULL;
  2169. 

libavformat/utils.c:2168:9: 
  2166. 
  2167.     if (s->nb_streams >= MAX_STREAMS)
  2168.         return NULL;
                ^
  2169. 
  2170.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2194:1: return from a call to av_new_stream
  2192.     s->streams[s->nb_streams++] = st;
  2193.     return st;
  2194. }
        ^
  2195. 
  2196. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:2904:10: Taking true branch
2902. 
2903.     st = av_new_stream(oc, oc->nb_streams);
2904.     if (!st) {
               ^
2905.         fprintf(stderr, "Could not alloc stream\n");
2906.         av_exit(1);

ffmpeg.c:2905:9: 
2903.     st = av_new_stream(oc, oc->nb_streams);
2904.     if (!st) {
2905.         fprintf(stderr, "Could not alloc stream\n");
              ^
2906.         av_exit(1);
2907.     }

ffmpeg.c:2906:9: Skipping av_exit(): empty list of specs
2904.     if (!st) {
2905.         fprintf(stderr, "Could not alloc stream\n");
2906.         av_exit(1);
              ^
2907.     }
2908.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);

ffmpeg.c:2908:5: 
2906.         av_exit(1);
2907.     }
2908.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
2909.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
2910.     video_bitstream_filters= NULL;
