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

ffmpeg.c:3127:1: start of procedure new_subtitle_stream()
3125. }
3126. 
3127. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3128. {
3129.     AVStream *st;

ffmpeg.c:3132:5: 
3130.     AVCodecContext *subtitle_enc;
3131. 
3132.     st = av_new_stream(oc, oc->nb_streams);
          ^
3133.     if (!st) {
3134.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2245:1: start of procedure av_new_stream()
  2243. }
  2244. 
  2245. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2246. {
  2247.     AVStream *st;

libavformat/utils.c:2250:9: Taking true branch
  2248.     int i;
  2249. 
  2250.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2251.         return NULL;
  2252. 

libavformat/utils.c:2251:9: 
  2249. 
  2250.     if (s->nb_streams >= MAX_STREAMS)
  2251.         return NULL;
                ^
  2252. 
  2253.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2281:1: return from a call to av_new_stream
  2279.     s->streams[s->nb_streams++] = st;
  2280.     return st;
  2281. }
        ^
  2282. 
  2283. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3133:10: Taking true branch
3131. 
3132.     st = av_new_stream(oc, oc->nb_streams);
3133.     if (!st) {
               ^
3134.         fprintf(stderr, "Could not alloc stream\n");
3135.         av_exit(1);

ffmpeg.c:3134:9: 
3132.     st = av_new_stream(oc, oc->nb_streams);
3133.     if (!st) {
3134.         fprintf(stderr, "Could not alloc stream\n");
              ^
3135.         av_exit(1);
3136.     }

ffmpeg.c:3135:9: Skipping av_exit(): empty list of specs
3133.     if (!st) {
3134.         fprintf(stderr, "Could not alloc stream\n");
3135.         av_exit(1);
              ^
3136.     }
3137.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3137:5: 
3135.         av_exit(1);
3136.     }
3137.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3138. 
3139.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
