summaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-01-28 03:12:22 +0100
committerLuca Barbato <lu_zero@gentoo.org>2011-01-28 15:45:19 +0100
commitf81c7ac70a7e5e82b0ab0839faf8d22d555efb9d (patch)
tree47c8428a071b395cb603a476b28a14e60e677c15 /libavformat/rtsp.c
parenta8475bbdb64e638bd8161df9647876fd23f8a29a (diff)
downloadffmpeg-streaming-f81c7ac70a7e5e82b0ab0839faf8d22d555efb9d.zip
ffmpeg-streaming-f81c7ac70a7e5e82b0ab0839faf8d22d555efb9d.tar.gz
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
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index a56ff99..dec6995 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -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++) {
OpenPOWER on IntegriCloud