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

ffmpeg.c:3330:1: start of procedure new_video_stream()
3328. }
3329. 
3330. static void new_video_stream(AVFormatContext *oc)
      ^
3331. {
3332.     AVStream *st;

ffmpeg.c:3336:5: 
3334.     enum CodecID codec_id;
3335. 
3336.     st = av_new_stream(oc, oc->nb_streams);
          ^
3337.     if (!st) {
3338.         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:3337:10: Taking true branch
3335. 
3336.     st = av_new_stream(oc, oc->nb_streams);
3337.     if (!st) {
               ^
3338.         fprintf(stderr, "Could not alloc stream\n");
3339.         av_exit(1);

ffmpeg.c:3338:9: 
3336.     st = av_new_stream(oc, oc->nb_streams);
3337.     if (!st) {
3338.         fprintf(stderr, "Could not alloc stream\n");
              ^
3339.         av_exit(1);
3340.     }

ffmpeg.c:3339:9: Skipping av_exit(): empty list of specs
3337.     if (!st) {
3338.         fprintf(stderr, "Could not alloc stream\n");
3339.         av_exit(1);
              ^
3340.     }
3341.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);

ffmpeg.c:3341:5: 
3339.         av_exit(1);
3340.     }
3341.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3342.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3343.     video_bitstream_filters= NULL;
