Revision d9c0510e libavformat/rtspenc.c

View differences:

libavformat/rtspenc.c
79 79
    /* Set up the RTSPStreams for each AVStream */
80 80
    for (i = 0; i < s->nb_streams; i++) {
81 81
        RTSPStream *rtsp_st;
82
        AVStream *st = s->streams[i];
83 82

  
84 83
        rtsp_st = av_mallocz(sizeof(RTSPStream));
85 84
        if (!rtsp_st)
86 85
            return AVERROR(ENOMEM);
87 86
        dynarray_add(&rt->rtsp_streams, &rt->nb_rtsp_streams, rtsp_st);
88 87

  
89
        st->priv_data = rtsp_st;
90 88
        rtsp_st->stream_index = i;
91 89

  
92 90
        av_strlcpy(rtsp_st->control_url, rt->control_uri, sizeof(rtsp_st->control_url));

Also available in: Unified diff