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

ffmpeg.c:3354:1: start of procedure new_subtitle_stream()
3352. }
3353. 
3354. static void new_subtitle_stream(AVFormatContext *oc)
      ^
3355. {
3356.     AVStream *st;

ffmpeg.c:3359:5: 
3357.     AVCodecContext *subtitle_enc;
3358. 
3359.     st = av_new_stream(oc, oc->nb_streams);
          ^
3360.     if (!st) {
3361.         fprintf(stderr, "Could not alloc stream\n");

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

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

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

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

ffmpeg.c:3360:10: Taking true branch
3358. 
3359.     st = av_new_stream(oc, oc->nb_streams);
3360.     if (!st) {
               ^
3361.         fprintf(stderr, "Could not alloc stream\n");
3362.         av_exit(1);

ffmpeg.c:3361:9: 
3359.     st = av_new_stream(oc, oc->nb_streams);
3360.     if (!st) {
3361.         fprintf(stderr, "Could not alloc stream\n");
              ^
3362.         av_exit(1);
3363.     }

ffmpeg.c:3362:9: Skipping av_exit(): empty list of specs
3360.     if (!st) {
3361.         fprintf(stderr, "Could not alloc stream\n");
3362.         av_exit(1);
              ^
3363.     }
3364.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);

ffmpeg.c:3364:5: 
3362.         av_exit(1);
3363.     }
3364.     avcodec_get_context_defaults2(st->codec, CODEC_TYPE_SUBTITLE);
          ^
3365. 
3366.     bitstream_filters[nb_output_files][oc->nb_streams - 1]= subtitle_bitstream_filters;
