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

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

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

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

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

libavformat/utils.c:2696:1: start of procedure avformat_new_stream()
  2694. }
  2695. 
  2696. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2697. {
  2698.     AVStream *st;

libavformat/utils.c:2702:9: Taking true branch
  2700.     AVStream **streams;
  2701. 
  2702.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2703.         return NULL;
  2704.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2703:9: 
  2701. 
  2702.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2703.         return NULL;
                ^
  2704.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2705.     if (!streams)

libavformat/utils.c:2750:1: return from a call to avformat_new_stream
  2748.     s->streams[s->nb_streams++] = st;
  2749.     return st;
  2750. }
        ^
  2751. 
  2752. AVProgram *av_new_program(AVFormatContext *ac, int id)

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

libavformat/utils.c:2696:1: start of procedure avformat_new_stream()
  2694. }
  2695. 
  2696. AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
        ^
  2697. {
  2698.     AVStream *st;

libavformat/utils.c:2702:9: Taking true branch
  2700.     AVStream **streams;
  2701. 
  2702.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
                ^
  2703.         return NULL;
  2704.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));

libavformat/utils.c:2703:9: 
  2701. 
  2702.     if (s->nb_streams >= INT_MAX/sizeof(*streams))
  2703.         return NULL;
                ^
  2704.     streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));
  2705.     if (!streams)

libavformat/utils.c:2750:1: return from a call to avformat_new_stream
  2748.     s->streams[s->nb_streams++] = st;
  2749.     return st;
  2750. }
        ^
  2751. 
  2752. AVProgram *av_new_program(AVFormatContext *ac, int id)

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