Revision b7effd4e libavformat/rtsp.c

View differences:

libavformat/rtsp.c
1784 1784
    /* read the whole sdp file */
1785 1785
    /* XXX: better loading */
1786 1786
    content = av_malloc(SDP_MAX_SIZE);
1787
    size = get_buffer(s->pb, content, SDP_MAX_SIZE - 1);
1787
    size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
1788 1788
    if (size <= 0) {
1789 1789
        av_free(content);
1790 1790
        return AVERROR_INVALIDDATA;

Also available in: Unified diff