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

ffmpeg.c:3235:1: start of procedure new_subtitle_stream()
3233. }
3234. 
3235. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3236. {
3237.     AVStream *st;

ffmpeg.c:3240:5: 
3238.     AVCodecContext *subtitle_enc;
3239. 
3240.     st = av_new_stream(oc, oc->nb_streams);
          ^
3241.     if (!st) {
3242.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2338:1: start of procedure av_new_stream()
  2336. }
  2337. 
  2338. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2339. {
  2340.     AVStream *st;

libavformat/utils.c:2343:9: Taking true branch
  2341.     int i;
  2342. 
  2343.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2344.         return NULL;
  2345. 

libavformat/utils.c:2344:9: 
  2342. 
  2343.     if (s->nb_streams >= MAX_STREAMS)
  2344.         return NULL;
                ^
  2345. 
  2346.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2378:1: return from a call to av_new_stream
  2376.     s->streams[s->nb_streams++] = st;
  2377.     return st;
  2378. }
        ^
  2379. 
  2380. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3241:10: Taking true branch
3239. 
3240.     st = av_new_stream(oc, oc->nb_streams);
3241.     if (!st) {
               ^
3242.         fprintf(stderr, "Could not alloc stream\n");
3243.         av_exit(1);

ffmpeg.c:3242:9: 
3240.     st = av_new_stream(oc, oc->nb_streams);
3241.     if (!st) {
3242.         fprintf(stderr, "Could not alloc stream\n");
              ^
3243.         av_exit(1);
3244.     }

ffmpeg.c:3243:9: Skipping av_exit(): empty list of specs
3241.     if (!st) {
3242.         fprintf(stderr, "Could not alloc stream\n");
3243.         av_exit(1);
              ^
3244.     }
3245.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3245:5: 
3243.         av_exit(1);
3244.     }
3245.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3246. 
3247.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
