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

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

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

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

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

libavformat/utils.c:2642:1: start of procedure av_new_stream()
  2640. }
  2641. 
  2642. AVStream *av_new_stream(AVFormatContext *s, int id)
        ^
  2643. {
  2644.     AVStream *st;

libavformat/utils.c:2648:9: Taking true branch
  2646.     AVStream **streams;
  2647. 
  2648.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2649.         return NULL;
  2650.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2649:9: 
  2647. 
  2648.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2649.         return NULL;
                ^
  2650.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2651.     if (!streams)

libavformat/utils.c:2691:1: return from a call to av_new_stream
  2689.     s->streams[s->nb_streams++] = st;
  2690.     return st;
  2691. }
        ^
  2692. 
  2693. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

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

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

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

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