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

ffmpeg.c:3306:1: start of procedure new_subtitle_stream()
3304. }
3305. 
3306. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3307. {
3308.     AVStream *st;

ffmpeg.c:3311:5: 
3309.     AVCodecContext *subtitle_enc;
3310. 
3311.     st = av_new_stream(oc, oc->nb_streams);
          ^
3312.     if (!st) {
3313.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2446:1: start of procedure av_new_stream()
  2444. }
  2445. 
  2446. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2447. {
  2448.     AVStream *st;

libavformat/utils.c:2451:9: Taking true branch
  2449.     int i;
  2450. 
  2451.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2452.         return NULL;
  2453. 

libavformat/utils.c:2452:9: 
  2450. 
  2451.     if (s->nb_streams >= MAX_STREAMS)
  2452.         return NULL;
                ^
  2453. 
  2454.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2486:1: return from a call to av_new_stream
  2484.     s->streams[s->nb_streams++] = st;
  2485.     return st;
  2486. }
        ^
  2487. 
  2488. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3312:10: Taking true branch
3310. 
3311.     st = av_new_stream(oc, oc->nb_streams);
3312.     if (!st) {
               ^
3313.         fprintf(stderr, "Could not alloc stream\n");
3314.         av_exit(1);

ffmpeg.c:3313:9: 
3311.     st = av_new_stream(oc, oc->nb_streams);
3312.     if (!st) {
3313.         fprintf(stderr, "Could not alloc stream\n");
              ^
3314.         av_exit(1);
3315.     }

ffmpeg.c:3314:9: Skipping av_exit(): empty list of specs
3312.     if (!st) {
3313.         fprintf(stderr, "Could not alloc stream\n");
3314.         av_exit(1);
              ^
3315.     }
3316.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3316:5: 
3314.         av_exit(1);
3315.     }
3316.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3317. 
3318.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
