libavformat/yop.c:63: error: Null Dereference
  pointer `video_stream` last assigned on line 60 could be null and is dereferenced at line 63, column 5.

libavformat/yop.c:49:1: start of procedure yop_read_header()
47. }
48. 
49. static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap)
    ^
50. {
51.     YopDecContext *yop = s->priv_data;

libavformat/yop.c:51:5: 
49. static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap)
50. {
51.     YopDecContext *yop = s->priv_data;
        ^
52.     AVIOContext *pb  = s->pb;
53. 

libavformat/yop.c:52:5: 
50. {
51.     YopDecContext *yop = s->priv_data;
52.     AVIOContext *pb  = s->pb;
        ^
53. 
54.     AVCodecContext *audio_dec, *video_dec;

libavformat/yop.c:59:5: 
57.     int frame_rate, ret;
58. 
59.     audio_stream = avformat_new_stream(s, NULL);
        ^
60.     video_stream = avformat_new_stream(s, NULL);
61. 

libavformat/utils.c:2670:1: start of procedure avformat_new_stream()
  2668. #endif
  2669. 
  2670. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2671. {
  2672.     AVStream *st;

libavformat/utils.c:2676:9: Taking true branch
  2674.     AVStream **streams;
  2675. 
  2676.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2677.         return NULL;
  2678.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2677:9: 
  2675. 
  2676.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2677.         return NULL;
                ^
  2678.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2679.     if (!streams)

libavformat/utils.c:2718:1: return from a call to avformat_new_stream
  2716.     s->streams[s->nb_streams++] = st;
  2717.     return st;
  2718. }
        ^
  2719. 
  2720. AVProgram *av_new_program(AVFormatContext *ac, int id)

libavformat/yop.c:60:5: 
58. 
59.     audio_stream = avformat_new_stream(s, NULL);
60.     video_stream = avformat_new_stream(s, NULL);
        ^
61. 
62.     // Extra data that will be passed to the decoder

libavformat/utils.c:2670:1: start of procedure avformat_new_stream()
  2668. #endif
  2669. 
  2670. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2671. {
  2672.     AVStream *st;

libavformat/utils.c:2676:9: Taking true branch
  2674.     AVStream **streams;
  2675. 
  2676.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2677.         return NULL;
  2678.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2677:9: 
  2675. 
  2676.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2677.         return NULL;
                ^
  2678.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2679.     if (!streams)

libavformat/utils.c:2718:1: return from a call to avformat_new_stream
  2716.     s->streams[s->nb_streams++] = st;
  2717.     return st;
  2718. }
        ^
  2719. 
  2720. AVProgram *av_new_program(AVFormatContext *ac, int id)

libavformat/yop.c:63:5: 
61. 
62.     // Extra data that will be passed to the decoder
63.     video_stream->codec->extradata_size = 8;
        ^
64. 
65.     video_stream->codec->extradata = av_mallocz(video_stream->codec->extradata_size +
