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

ffmpeg.c:3155:1: start of procedure new_video_stream()
3153. }
3154. 
3155. static void new_video_stream(AVFormatContext *oc)
      ^
3156. {
3157.     AVStream *st;

ffmpeg.c:3161:5: 
3159.     enum CodecID codec_id;
3160. 
3161.     st = av_new_stream(oc, oc->nb_streams);
          ^
3162.     if (!st) {
3163.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2453:1: start of procedure av_new_stream()
  2451. }
  2452. 
  2453. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2454. {
  2455.     AVStream *st;

libavformat/utils.c:2458:9: Taking true branch
  2456.     int i;
  2457. 
  2458.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2459.         return NULL;
  2460. 

libavformat/utils.c:2459:9: 
  2457. 
  2458.     if (s->nb_streams >= MAX_STREAMS)
  2459.         return NULL;
                ^
  2460. 
  2461.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2493:1: return from a call to av_new_stream
  2491.     s->streams[s->nb_streams++] = st;
  2492.     return st;
  2493. }
        ^
  2494. 
  2495. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3162:10: Taking true branch
3160. 
3161.     st = av_new_stream(oc, oc->nb_streams);
3162.     if (!st) {
               ^
3163.         fprintf(stderr, "Could not alloc stream\n");
3164.         av_exit(1);

ffmpeg.c:3163:9: 
3161.     st = av_new_stream(oc, oc->nb_streams);
3162.     if (!st) {
3163.         fprintf(stderr, "Could not alloc stream\n");
              ^
3164.         av_exit(1);
3165.     }

ffmpeg.c:3164:9: Skipping av_exit(): empty list of specs
3162.     if (!st) {
3163.         fprintf(stderr, "Could not alloc stream\n");
3164.         av_exit(1);
              ^
3165.     }
3166.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);

ffmpeg.c:3166:5: 
3164.         av_exit(1);
3165.     }
3166.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3167.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3168.     video_bitstream_filters= NULL;
