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

ffmpeg.c:3010:1: start of procedure new_video_stream()
3008. }
3009. 
3010. static void new_video_stream(AVFormatContext *oc)
      ^
3011. {
3012.     AVStream *st;

ffmpeg.c:3016:5: 
3014.     int codec_id;
3015. 
3016.     st = av_new_stream(oc, oc->nb_streams);
          ^
3017.     if (!st) {
3018.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2338:1: start of procedure av_new_stream()
  2336. }
  2337. 
  2338. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2339. {
  2340.     AVStream *st;

libavformat/utils.c:2343:9: Taking true branch
  2341.     int i;
  2342. 
  2343.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2344.         return NULL;
  2345. 

libavformat/utils.c:2344:9: 
  2342. 
  2343.     if (s->nb_streams >= MAX_STREAMS)
  2344.         return NULL;
                ^
  2345. 
  2346.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2378:1: return from a call to av_new_stream
  2376.     s->streams[s->nb_streams++] = st;
  2377.     return st;
  2378. }
        ^
  2379. 
  2380. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3017:10: Taking true branch
3015. 
3016.     st = av_new_stream(oc, oc->nb_streams);
3017.     if (!st) {
               ^
3018.         fprintf(stderr, "Could not alloc stream\n");
3019.         av_exit(1);

ffmpeg.c:3018:9: 
3016.     st = av_new_stream(oc, oc->nb_streams);
3017.     if (!st) {
3018.         fprintf(stderr, "Could not alloc stream\n");
              ^
3019.         av_exit(1);
3020.     }

ffmpeg.c:3019:9: Skipping av_exit(): empty list of specs
3017.     if (!st) {
3018.         fprintf(stderr, "Could not alloc stream\n");
3019.         av_exit(1);
              ^
3020.     }
3021.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);

ffmpeg.c:3021:5: 
3019.         av_exit(1);
3020.     }
3021.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_VIDEO);
          ^
3022.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3023.     video_bitstream_filters= NULL;
