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

ffmpeg.c:3218:1: start of procedure new_subtitle_stream()
3216. }
3217. 
3218. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3219. {
3220.     AVStream *st;

ffmpeg.c:3223:5: 
3221.     AVCodecContext *subtitle_enc;
3222. 
3223.     st = av_new_stream(oc, oc->nb_streams);
          ^
3224.     if (!st) {
3225.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2305:1: start of procedure av_new_stream()
  2303. }
  2304. 
  2305. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2306. {
  2307.     AVStream *st;

libavformat/utils.c:2310:9: Taking true branch
  2308.     int i;
  2309. 
  2310.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2311.         return NULL;
  2312. 

libavformat/utils.c:2311:9: 
  2309. 
  2310.     if (s->nb_streams >= MAX_STREAMS)
  2311.         return NULL;
                ^
  2312. 
  2313.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2343:1: return from a call to av_new_stream
  2341.     s->streams[s->nb_streams++] = st;
  2342.     return st;
  2343. }
        ^
  2344. 
  2345. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3224:10: Taking true branch
3222. 
3223.     st = av_new_stream(oc, oc->nb_streams);
3224.     if (!st) {
               ^
3225.         fprintf(stderr, "Could not alloc stream\n");
3226.         av_exit(1);

ffmpeg.c:3225:9: 
3223.     st = av_new_stream(oc, oc->nb_streams);
3224.     if (!st) {
3225.         fprintf(stderr, "Could not alloc stream\n");
              ^
3226.         av_exit(1);
3227.     }

ffmpeg.c:3226:9: Skipping av_exit(): empty list of specs
3224.     if (!st) {
3225.         fprintf(stderr, "Could not alloc stream\n");
3226.         av_exit(1);
              ^
3227.     }
3228.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3228:5: 
3226.         av_exit(1);
3227.     }
3228.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3229. 
3230.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
