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

ffmpeg.c:3151:1: start of procedure new_video_stream()
3149. }
3150. 
3151. static void new_video_stream(AVFormatContext *oc)
      ^
3152. {
3153.     AVStream *st;

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

libavformat/utils.c:2459:1: start of procedure av_new_stream()
  2457. }
  2458. 
  2459. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2460. {
  2461.     AVStream *st;

libavformat/utils.c:2464:9: Taking true branch
  2462.     int i;
  2463. 
  2464.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2465.         return NULL;
  2466. 

libavformat/utils.c:2465:9: 
  2463. 
  2464.     if (s->nb_streams >= MAX_STREAMS)
  2465.         return NULL;
                ^
  2466. 
  2467.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2499:1: return from a call to av_new_stream
  2497.     s->streams[s->nb_streams++] = st;
  2498.     return st;
  2499. }
        ^
  2500. 
  2501. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

ffmpeg.c:3162:5: 
3160.         av_exit(1);
3161.     }
3162.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3163.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3164.     video_bitstream_filters= NULL;
