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

ffmpeg.c:3185:1: start of procedure new_subtitle_stream()
3183. }
3184. 
3185. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3186. {
3187.     AVStream *st;

ffmpeg.c:3190:5: 
3188.     AVCodecContext *subtitle_enc;
3189. 
3190.     st = av_new_stream(oc, oc->nb_streams);
          ^
3191.     if (!st) {
3192.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2271:1: start of procedure av_new_stream()
  2269. }
  2270. 
  2271. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2272. {
  2273.     AVStream *st;

libavformat/utils.c:2276:9: Taking true branch
  2274.     int i;
  2275. 
  2276.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2277.         return NULL;
  2278. 

libavformat/utils.c:2277:9: 
  2275. 
  2276.     if (s->nb_streams >= MAX_STREAMS)
  2277.         return NULL;
                ^
  2278. 
  2279.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2309:1: return from a call to av_new_stream
  2307.     s->streams[s->nb_streams++] = st;
  2308.     return st;
  2309. }
        ^
  2310. 
  2311. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3191:10: Taking true branch
3189. 
3190.     st = av_new_stream(oc, oc->nb_streams);
3191.     if (!st) {
               ^
3192.         fprintf(stderr, "Could not alloc stream\n");
3193.         av_exit(1);

ffmpeg.c:3192:9: 
3190.     st = av_new_stream(oc, oc->nb_streams);
3191.     if (!st) {
3192.         fprintf(stderr, "Could not alloc stream\n");
              ^
3193.         av_exit(1);
3194.     }

ffmpeg.c:3193:9: Skipping av_exit(): empty list of specs
3191.     if (!st) {
3192.         fprintf(stderr, "Could not alloc stream\n");
3193.         av_exit(1);
              ^
3194.     }
3195.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3195:5: 
3193.         av_exit(1);
3194.     }
3195.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3196. 
3197.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
