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

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

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

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

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

libavformat/utils.c:2608:1: start of procedure avformat_new_stream()
  2606. }
  2607. 
  2608. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2609. {
  2610.     AVStream *st;

libavformat/utils.c:2614:9: Taking true branch
  2612.     AVStream **streams;
  2613. 
  2614.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2615.         return NULL;
  2616.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2615:9: 
  2613. 
  2614.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2615.         return NULL;
                ^
  2616.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2617.     if (!streams)

libavformat/utils.c:2656:1: return from a call to avformat_new_stream
  2654.     s->streams[s->nb_streams++] = st;
  2655.     return st;
  2656. }
        ^
  2657. 
  2658. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

libavformat/utils.c:2608:1: start of procedure avformat_new_stream()
  2606. }
  2607. 
  2608. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2609. {
  2610.     AVStream *st;

libavformat/utils.c:2614:9: Taking true branch
  2612.     AVStream **streams;
  2613. 
  2614.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2615.         return NULL;
  2616.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2615:9: 
  2613. 
  2614.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2615.         return NULL;
                ^
  2616.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2617.     if (!streams)

libavformat/utils.c:2656:1: return from a call to avformat_new_stream
  2654.     s->streams[s->nb_streams++] = st;
  2655.     return st;
  2656. }
        ^
  2657. 
  2658. AVProgram *av_new_program(AVFormatContext *ac, int id)

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