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

ffmpeg.c:3033:1: start of procedure new_video_stream()
3031. }
3032. 
3033. static void new_video_stream(AVFormatContext *oc)
      ^
3034. {
3035.     AVStream *st;

ffmpeg.c:3039:5: 
3037.     enum CodecID codec_id;
3038. 
3039.     st = av_new_stream(oc, oc->nb_streams);
          ^
3040.     if (!st) {
3041.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2355:1: start of procedure av_new_stream()
  2353. }
  2354. 
  2355. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2356. {
  2357.     AVStream *st;

libavformat/utils.c:2360:9: Taking true branch
  2358.     int i;
  2359. 
  2360.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2361.         return NULL;
  2362. 

libavformat/utils.c:2361:9: 
  2359. 
  2360.     if (s->nb_streams >= MAX_STREAMS)
  2361.         return NULL;
                ^
  2362. 
  2363.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2395:1: return from a call to av_new_stream
  2393.     s->streams[s->nb_streams++] = st;
  2394.     return st;
  2395. }
        ^
  2396. 
  2397. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3040:10: Taking true branch
3038. 
3039.     st = av_new_stream(oc, oc->nb_streams);
3040.     if (!st) {
               ^
3041.         fprintf(stderr, "Could not alloc stream\n");
3042.         av_exit(1);

ffmpeg.c:3041:9: 
3039.     st = av_new_stream(oc, oc->nb_streams);
3040.     if (!st) {
3041.         fprintf(stderr, "Could not alloc stream\n");
              ^
3042.         av_exit(1);
3043.     }

ffmpeg.c:3042:9: Skipping av_exit(): empty list of specs
3040.     if (!st) {
3041.         fprintf(stderr, "Could not alloc stream\n");
3042.         av_exit(1);
              ^
3043.     }
3044.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);

ffmpeg.c:3044:5: 
3042.         av_exit(1);
3043.     }
3044.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
3045.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3046.     video_bitstream_filters= NULL;
