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

ffmpeg.c:3342:1: start of procedure new_video_stream()
3340. }
3341. 
3342. static void new_video_stream(AVFormatContext *oc)
      ^
3343. {
3344.     AVStream *st;

ffmpeg.c:3348:5: 
3346.     enum CodecID codec_id;
3347. 
3348.     st = av_new_stream(oc, oc->nb_streams);
          ^
3349.     if (!st) {
3350.         fprintf(stderr, "Could not alloc stream\n");

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

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

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

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

ffmpeg.c:3349:10: Taking true branch
3347. 
3348.     st = av_new_stream(oc, oc->nb_streams);
3349.     if (!st) {
               ^
3350.         fprintf(stderr, "Could not alloc stream\n");
3351.         av_exit(1);

ffmpeg.c:3350:9: 
3348.     st = av_new_stream(oc, oc->nb_streams);
3349.     if (!st) {
3350.         fprintf(stderr, "Could not alloc stream\n");
              ^
3351.         av_exit(1);
3352.     }

ffmpeg.c:3351:9: Skipping av_exit(): empty list of specs
3349.     if (!st) {
3350.         fprintf(stderr, "Could not alloc stream\n");
3351.         av_exit(1);
              ^
3352.     }
3353.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);

ffmpeg.c:3353:5: 
3351.         av_exit(1);
3352.     }
3353.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3354.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3355.     video_bitstream_filters= NULL;
