ffmpeg.c:3649: error: Null Dereference
  pointer `st` last assigned on line 3643 could be null and is dereferenced at line 3649, column 16.

ffmpeg.c:3637:1: start of procedure new_data_stream()
3635. }
3636. 
3637. static void new_data_stream(AVFormatContext *oc, int file_idx)
      ^
3638. {
3639.     AVStream *st;

ffmpeg.c:3640:5: 
3638. {
3639.     AVStream *st;
3640.     AVCodec *codec=NULL;
          ^
3641.     AVCodecContext *data_enc;
3642. 

ffmpeg.c:3643:28: Condition is true
3641.     AVCodecContext *data_enc;
3642. 
3643.     st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
                                 ^
3644.     if (!st) {
3645.         fprintf(stderr, "Could not alloc stream\n");

ffmpeg.c:3643:5: 
3641.     AVCodecContext *data_enc;
3642. 
3643.     st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
          ^
3644.     if (!st) {
3645.         fprintf(stderr, "Could not alloc stream\n");

libavformat/utils.c:2635:1: start of procedure av_new_stream()
  2633. }
  2634. 
  2635. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2636. {
  2637.     AVStream *st;

libavformat/utils.c:2641:9: Taking true branch
  2639.     AVStream **streams;
  2640. 
  2641.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2642.         return NULL;
  2643.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2642:9: 
  2640. 
  2641.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2642.         return NULL;
                ^
  2643.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2644.     if (!streams)

libavformat/utils.c:2684:1: return from a call to av_new_stream
  2682.     s->streams[s->nb_streams++] = st;
  2683.     return st;
  2684. }
        ^
  2685. 
  2686. AVProgram *av_new_program(AVFormatContext *ac, int id)

ffmpeg.c:3644:10: Taking true branch
3642. 
3643.     st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
3644.     if (!st) {
               ^
3645.         fprintf(stderr, "Could not alloc stream\n");
3646.         ffmpeg_exit(1);

ffmpeg.c:3645:9: 
3643.     st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
3644.     if (!st) {
3645.         fprintf(stderr, "Could not alloc stream\n");
              ^
3646.         ffmpeg_exit(1);
3647.     }

ffmpeg.c:3646:9: Skipping ffmpeg_exit(): empty list of specs
3644.     if (!st) {
3645.         fprintf(stderr, "Could not alloc stream\n");
3646.         ffmpeg_exit(1);
              ^
3647.     }
3648.     new_output_stream(oc, file_idx);

ffmpeg.c:3648:5: Skipping new_output_stream(): empty list of specs
3646.         ffmpeg_exit(1);
3647.     }
3648.     new_output_stream(oc, file_idx);
          ^
3649.     data_enc = st->codec;
3650.     if (!data_stream_copy) {

ffmpeg.c:3649:5: 
3647.     }
3648.     new_output_stream(oc, file_idx);
3649.     data_enc = st->codec;
          ^
3650.     if (!data_stream_copy) {
3651.         fprintf(stderr, "Data stream encoding not supported yet (only streamcopy)\n");
