mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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:
parent
a8475bbdb6
commit
f81c7ac70a
@ -1795,8 +1795,9 @@ static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||||||
}
|
}
|
||||||
content[size] ='\0';
|
content[size] ='\0';
|
||||||
|
|
||||||
ff_sdp_parse(s, content);
|
err = ff_sdp_parse(s, content);
|
||||||
av_free(content);
|
av_free(content);
|
||||||
|
if (err) goto fail;
|
||||||
|
|
||||||
/* open each RTP stream */
|
/* open each RTP stream */
|
||||||
for (i = 0; i < rt->nb_rtsp_streams; i++) {
|
for (i = 0; i < rt->nb_rtsp_streams; i++) {
|
||||||
|
@ -136,7 +136,7 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)
|
|||||||
ret = ff_sdp_parse(s, (const char *)content);
|
ret = ff_sdp_parse(s, (const char *)content);
|
||||||
av_freep(&content);
|
av_freep(&content);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return AVERROR_INVALIDDATA;
|
return ret;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user