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

ffmpeg.c:3244:1: start of procedure new_subtitle_stream()
3242. }
3243. 
3244. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3245. {
3246.     AVStream *st;

ffmpeg.c:3249:5: 
3247.     AVCodecContext *subtitle_enc;
3248. 
3249.     st = av_new_stream(oc, oc->nb_streams);
          ^
3250.     if (!st) {
3251.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2318:1: start of procedure av_new_stream()
  2316. }
  2317. 
  2318. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2319. {
  2320.     AVStream *st;

libavformat/utils.c:2323:9: Taking true branch
  2321.     int i;
  2322. 
  2323.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2324.         return NULL;
  2325. 

libavformat/utils.c:2324:9: 
  2322. 
  2323.     if (s->nb_streams >= MAX_STREAMS)
  2324.         return NULL;
                ^
  2325. 
  2326.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2357:1: return from a call to av_new_stream
  2355.     s->streams[s->nb_streams++] = st;
  2356.     return st;
  2357. }
        ^
  2358. 
  2359. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3250:10: Taking true branch
3248. 
3249.     st = av_new_stream(oc, oc->nb_streams);
3250.     if (!st) {
               ^
3251.         fprintf(stderr, "Could not alloc stream\n");
3252.         av_exit(1);

ffmpeg.c:3251:9: 
3249.     st = av_new_stream(oc, oc->nb_streams);
3250.     if (!st) {
3251.         fprintf(stderr, "Could not alloc stream\n");
              ^
3252.         av_exit(1);
3253.     }

ffmpeg.c:3252:9: Skipping av_exit(): empty list of specs
3250.     if (!st) {
3251.         fprintf(stderr, "Could not alloc stream\n");
3252.         av_exit(1);
              ^
3253.     }
3254.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3254:5: 
3252.         av_exit(1);
3253.     }
3254.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3255. 
3256.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
