rtsp: make ff_sdp_parse return value forwarded
the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error
This commit is contained in:
@@ -1795,8 +1795,9 @@ static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
}
|
||||
content[size] ='\0';
|
||||
|
||||
ff_sdp_parse(s, content);
|
||||
err = ff_sdp_parse(s, content);
|
||||
av_free(content);
|
||||
if (err) goto fail;
|
||||
|
||||
/* open each RTP stream */
|
||||
for (i = 0; i < rt->nb_rtsp_streams; i++) {
|
||||
|
||||
Reference in New Issue
Block a user