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

ffmpeg.c:3194:1: start of procedure new_subtitle_stream()
3192. }
3193. 
3194. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3195. {
3196.     AVStream *st;

ffmpeg.c:3199:5: 
3197.     AVCodecContext *subtitle_enc;
3198. 
3199.     st = av_new_stream(oc, oc->nb_streams);
          ^
3200.     if (!st) {
3201.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2344:1: start of procedure av_new_stream()
  2342. }
  2343. 
  2344. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2345. {
  2346.     AVStream *st;

libavformat/utils.c:2349:9: Taking true branch
  2347.     int i;
  2348. 
  2349.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2350.         return NULL;
  2351. 

libavformat/utils.c:2350:9: 
  2348. 
  2349.     if (s->nb_streams >= MAX_STREAMS)
  2350.         return NULL;
                ^
  2351. 
  2352.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2383:1: return from a call to av_new_stream
  2381.     s->streams[s->nb_streams++] = st;
  2382.     return st;
  2383. }
        ^
  2384. 
  2385. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3200:10: Taking true branch
3198. 
3199.     st = av_new_stream(oc, oc->nb_streams);
3200.     if (!st) {
               ^
3201.         fprintf(stderr, "Could not alloc stream\n");
3202.         av_exit(1);

ffmpeg.c:3201:9: 
3199.     st = av_new_stream(oc, oc->nb_streams);
3200.     if (!st) {
3201.         fprintf(stderr, "Could not alloc stream\n");
              ^
3202.         av_exit(1);
3203.     }

ffmpeg.c:3202:9: Skipping av_exit(): empty list of specs
3200.     if (!st) {
3201.         fprintf(stderr, "Could not alloc stream\n");
3202.         av_exit(1);
              ^
3203.     }
3204.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3204:5: 
3202.         av_exit(1);
3203.     }
3204.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3205. 
3206.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
