Revision b351baa0

View differences:

libavformat/rtsp.c
1795 1795
    }
1796 1796
    content[size] ='\0';
1797 1797

  
1798
    ff_sdp_parse(s, content);
1798
    err = ff_sdp_parse(s, content);
1799 1799
    av_free(content);
1800
    if (err) goto fail;
1800 1801

  
1801 1802
    /* open each RTP stream */
1802 1803
    for (i = 0; i < rt->nb_rtsp_streams; i++) {
libavformat/rtspdec.c
136 136
    ret = ff_sdp_parse(s, (const char *)content);
137 137
    av_freep(&content);
138 138
    if (ret < 0)
139
        return AVERROR_INVALIDDATA;
139
        return ret;
140 140

  
141 141
    return 0;
142 142
}

Also available in: Unified diff