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

ffmpeg.c:3290:1: start of procedure new_subtitle_stream()
3288. }
3289. 
3290. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3291. {
3292.     AVStream *st;

ffmpeg.c:3295:5: 
3293.     AVCodecContext *subtitle_enc;
3294. 
3295.     st = av_new_stream(oc, oc->nb_streams);
          ^
3296.     if (!st) {
3297.         fprintf(stderr, "Could not alloc stream\n");

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

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

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

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

ffmpeg.c:3296:10: Taking true branch
3294. 
3295.     st = av_new_stream(oc, oc->nb_streams);
3296.     if (!st) {
               ^
3297.         fprintf(stderr, "Could not alloc stream\n");
3298.         av_exit(1);

ffmpeg.c:3297:9: 
3295.     st = av_new_stream(oc, oc->nb_streams);
3296.     if (!st) {
3297.         fprintf(stderr, "Could not alloc stream\n");
              ^
3298.         av_exit(1);
3299.     }

ffmpeg.c:3298:9: Skipping av_exit(): empty list of specs
3296.     if (!st) {
3297.         fprintf(stderr, "Could not alloc stream\n");
3298.         av_exit(1);
              ^
3299.     }
3300.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3300:5: 
3298.         av_exit(1);
3299.     }
3300.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3301. 
3302.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
