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

ffmpeg.c:3351:1: start of procedure new_video_stream()
3349. }
3350. 
3351. static void new_video_stream(AVFormatContext *oc)
      ^
3352. {
3353.     AVStream *st;

ffmpeg.c:3357:5: 
3355.     enum CodecID codec_id;
3356. 
3357.     st = av_new_stream(oc, oc->nb_streams);
          ^
3358.     if (!st) {
3359.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2495:1: start of procedure av_new_stream()
  2493. }
  2494. 
  2495. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2496. {
  2497.     AVStream *st;

libavformat/utils.c:2500:9: Taking true branch
  2498.     int i;
  2499. 
  2500.     if (s->nb_streams >= MAX_STREAMS){
                ^
  2501.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
  2502.         return NULL;

libavformat/utils.c:2501:9: Skipping av_log(): empty list of specs
  2499. 
  2500.     if (s->nb_streams >= MAX_STREAMS){
  2501.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
                ^
  2502.         return NULL;
  2503.     }

libavformat/utils.c:2502:9: 
  2500.     if (s->nb_streams >= MAX_STREAMS){
  2501.         av_log(s, AV_LOG_ERROR, "Too many streams\n");
  2502.         return NULL;
                ^
  2503.     }
  2504. 

libavformat/utils.c:2537:1: return from a call to av_new_stream
  2535.     s->streams[s->nb_streams++] = st;
  2536.     return st;
  2537. }
        ^
  2538. 
  2539. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3358:10: Taking true branch
3356. 
3357.     st = av_new_stream(oc, oc->nb_streams);
3358.     if (!st) {
               ^
3359.         fprintf(stderr, "Could not alloc stream\n");
3360.         av_exit(1);

ffmpeg.c:3359:9: 
3357.     st = av_new_stream(oc, oc->nb_streams);
3358.     if (!st) {
3359.         fprintf(stderr, "Could not alloc stream\n");
              ^
3360.         av_exit(1);
3361.     }

ffmpeg.c:3360:9: Skipping av_exit(): empty list of specs
3358.     if (!st) {
3359.         fprintf(stderr, "Could not alloc stream\n");
3360.         av_exit(1);
              ^
3361.     }
3362.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);

ffmpeg.c:3362:5: 
3360.         av_exit(1);
3361.     }
3362.     avcodec_get_context_defaults2(st->codec, AVMEDIA_TYPE_VIDEO);
          ^
3363.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= video_bitstream_filters;
3364.     video_bitstream_filters= NULL;
