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

ffmpeg.c:3272:1: start of procedure new_subtitle_stream()
3270. }
3271. 
3272. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3273. {
3274.     AVStream *st;

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

libavformat/utils.c:2365:1: start of procedure av_new_stream()
  2363. }
  2364. 
  2365. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2366. {
  2367.     AVStream *st;

libavformat/utils.c:2370:9: Taking true branch
  2368.     int i;
  2369. 
  2370.     if (s->nb_streams >= MAX_STREAMS)
                ^
  2371.         return NULL;
  2372. 

libavformat/utils.c:2371:9: 
  2369. 
  2370.     if (s->nb_streams >= MAX_STREAMS)
  2371.         return NULL;
                ^
  2372. 
  2373.     st = av_mallocz(sizeof(AVStream));

libavformat/utils.c:2405:1: return from a call to av_new_stream
  2403.     s->streams[s->nb_streams++] = st;
  2404.     return st;
  2405. }
        ^
  2406. 
  2407. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

ffmpeg.c:3282:5: 
3280.         av_exit(1);
3281.     }
3282.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3283. 
3284.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
