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

ffmpeg.c:3276:1: start of procedure new_subtitle_stream()
3274. }
3275. 
3276. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3277. {
3278.     AVStream *st;

ffmpeg.c:3281:5: 
3279.     AVCodecContext *subtitle_enc;
3280. 
3281.     st = av_new_stream(oc, oc->nb_streams);
          ^
3282.     if (!st) {
3283.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2382:1: start of procedure av_new_stream()
  2380. }
  2381. 
  2382. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2383. {
  2384.     AVStream *st;

libavformat/utils.c:2387:9: Taking true branch
  2385.     int i;
  2386. 
  2387.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2388.         return NULL;
  2389. 

libavformat/utils.c:2388:9: 
  2386. 
  2387.     if (s->nb_streams >= MAX_STREAMS)
  2388.         return NULL;
                ^
  2389. 
  2390.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2422:1: return from a call to av_new_stream
  2420.     s->streams[s->nb_streams++] = st;
  2421.     return st;
  2422. }
        ^
  2423. 
  2424. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3282:10: Taking true branch
3280. 
3281.     st = av_new_stream(oc, oc->nb_streams);
3282.     if (!st) {
               ^
3283.         fprintf(stderr, "Could not alloc stream\n");
3284.         av_exit(1);

ffmpeg.c:3283:9: 
3281.     st = av_new_stream(oc, oc->nb_streams);
3282.     if (!st) {
3283.         fprintf(stderr, "Could not alloc stream\n");
              ^
3284.         av_exit(1);
3285.     }

ffmpeg.c:3284:9: Skipping av_exit(): empty list of specs
3282.     if (!st) {
3283.         fprintf(stderr, "Could not alloc stream\n");
3284.         av_exit(1);
              ^
3285.     }
3286.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3286:5: 
3284.         av_exit(1);
3285.     }
3286.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3287. 
3288.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
