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

ffmpeg.c:3147:1: start of procedure new_video_stream()
3145. }
3146. 
3147. static void new_video_stream(AVFormatContext *oc)
      ^
3148. {
3149.     AVStream *st;

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

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

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

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

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

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

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

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

ffmpeg.c:3158:5: 
3156.         av_exit(1);
3157.     }
3158.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3159.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3160.     video_bitstream_filters= NULL;
