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

ffmpeg.c:3300:1: start of procedure new_subtitle_stream()
3298. }
3299. 
3300. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3301. {
3302.     AVStream *st;

ffmpeg.c:3305:5: 
3303.     AVCodecContext *subtitle_enc;
3304. 
3305.     st = av_new_stream(oc, oc->nb_streams);
          ^
3306.     if (!st) {
3307.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2401:1: start of procedure av_new_stream()
  2399. }
  2400. 
  2401. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2402. {
  2403.     AVStream *st;

libavformat/utils.c:2406:9: Taking true branch
  2404.     int i;
  2405. 
  2406.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2407.         return NULL;
  2408. 

libavformat/utils.c:2407:9: 
  2405. 
  2406.     if (s->nb_streams >= MAX_STREAMS)
  2407.         return NULL;
                ^
  2408. 
  2409.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2441:1: return from a call to av_new_stream
  2439.     s->streams[s->nb_streams++] = st;
  2440.     return st;
  2441. }
        ^
  2442. 
  2443. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3306:10: Taking true branch
3304. 
3305.     st = av_new_stream(oc, oc->nb_streams);
3306.     if (!st) {
               ^
3307.         fprintf(stderr, "Could not alloc stream\n");
3308.         av_exit(1);

ffmpeg.c:3307:9: 
3305.     st = av_new_stream(oc, oc->nb_streams);
3306.     if (!st) {
3307.         fprintf(stderr, "Could not alloc stream\n");
              ^
3308.         av_exit(1);
3309.     }

ffmpeg.c:3308:9: Skipping av_exit(): empty list of specs
3306.     if (!st) {
3307.         fprintf(stderr, "Could not alloc stream\n");
3308.         av_exit(1);
              ^
3309.     }
3310.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3310:5: 
3308.         av_exit(1);
3309.     }
3310.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3311. 
3312.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
